{%- 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
end
%w[
- rubygem-bundler
+ centos-release-scl
curl
gcc
git
libcurl
libcurl-devel
- pam-devel
- postgresql-devel
libxml2
libxml2-devel
make
+ pam-devel
+ postgresql12-libs
python3-devel
- ruby-devel
+ rubygem-bundler
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
end