Arvados-DCO-1.1-Signed-off-by: Javier Bértoli <jbertoli@curii.com>
+ # Arvados API needs postgresql libs and cli to connect to the database
+ # and populate it. Please specify the postgresql version that you expect
+ # to use here
+ postgresql_version: 12
service:
name: nginx
port: 8004
service:
name: nginx
port: 8004
- libcurl
- libcurl-devel
- pam-devel
- libcurl
- libcurl-devel
- pam-devel
- libxml2
- libxml2-devel
- make
- python3-devel
- libxml2
- libxml2-devel
- make
- python3-devel
- zlib-devel
##### SHELL
shell:
- zlib-devel
##### SHELL
shell:
{%- if arvados.ruby.manage_ruby %}
{%- if arvados.ruby.use_rvm %}
{%- if arvados.ruby.manage_ruby %}
{%- if arvados.ruby.use_rvm %}
+
+ # Centos 7 has a too old postgresql package and we need a newer one
+ {%- if grains.os_family in ('RedHat',) %}
+arvados-ruby-package-install-ruby-rvm-deps-centos-scl-release-pkg-installed:
+ pkg.installed:
+ - name: centos-release-scl
+ - require_in:
+
+arvados-ruby-package-install-ruby-rvm-deps-rh-postgres11-libs-pkg-installed:
+ pkg.installed:
+ - name: rh-postgresql{{ arvados.api.postgresql_version }}-postgresql-libs
+ - unless: rpm -q postgresql{{ arvados.api.postgresql_version }}-libs
+ - require_in:
+ - cmd: arvados-ruby-package-install-rvm-cmd-run-curl
+ {%- endif %}
+
# Centos 7 has no python3-gnupg package, so using gpg.present
# will fail when it can't list the existing keys.
# Doing it the hard way
# Centos 7 has no python3-gnupg package, so using gpg.present
# will fail when it can't list the existing keys.
# Doing it the hard way
curl
gcc
git
libcurl
libcurl-devel
curl
gcc
git
libcurl
libcurl-devel
- pam-devel
- postgresql-devel
libxml2
libxml2-devel
make
libxml2
libxml2-devel
make
+ pam-devel
+ postgresql12-libs
zlib-devel
].each do |p|
describe package(p) do
it { should be_installed }
end
end
zlib-devel
].each do |p|
describe package(p) do
it { should be_installed }
end
end
+ describe command('/usr/local/rvm/bin/rvm list') do
+ its(:exit_status) { should eq 0 }
+ its('stdout') { should match (/ruby-2.5.8/) }
+ end