1 # -*- coding: utf-8 -*-
4 # Copyright (C) The Arvados Authors. All rights reserved.
6 # SPDX-License-Identifier: Apache-2.0
8 {#- Get the `tplroot` from `tpldir` #}
9 {%- set tplroot = tpldir.split('/')[0] %}
10 {%- from tplroot ~ "/map.jinja" import arvados with context %}
12 {%- if arvados.ruby.manage_ruby %}
14 {%- if arvados.ruby.use_rvm %}
16 # Centos 7 has a too old postgresql package and we need a newer one
17 {%- if grains.os_family in ('RedHat',) %}
18 arvados-ruby-package-install-ruby-rvm-deps-centos-scl-release-pkg-installed:
20 - name: centos-release-scl
22 arvados-ruby-package-install-ruby-rvm-deps-rh-postgres-libs-pkg-installed:
24 - name: rh-postgresql{{ arvados.api.postgresql_version }}-postgresql-libs
25 - unless: rpm -q postgresql{{ arvados.api.postgresql_version }}-libs
27 - cmd: arvados-ruby-package-install-rvm-cmd-run-curl
30 # Centos 7 has no python3-gnupg package, so using gpg.present
31 # will fail when it can't list the existing keys.
32 # Doing it the hard way
33 arvados-ruby-package-install-gpg-cmd-run-gpg-michal-papis:
35 - name: gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
37 - gpg --list-keys 409B6B1796C275462A1703113804BB82D39DC0E3
39 arvados-ruby-package-install-gpg-cmd-run-gpg-piotr-kuczynski:
41 - name: gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
43 - gpg --list-keys 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
45 arvados-ruby-package-install-rvm-cmd-run-curl:
47 - name: curl -s -L http://get.rvm.io | bash -s stable
48 - unless: test -f /usr/local/rvm/bin/rvm
50 - cmd: arvados-ruby-package-install-gpg-cmd-run-gpg-michal-papis
51 - cmd: arvados-ruby-package-install-gpg-cmd-run-gpg-piotr-kuczynski
53 arvados-ruby-package-install-ruby-rvm-installed:
55 - name: {{ arvados.ruby.pkg }}
58 - cmd: arvados-ruby-package-install-rvm-cmd-run-curl
62 arvados-ruby-package-install-ruby-pkg-installed:
64 - name: {{ arvados.ruby.pkg }}