1 # -*- coding: utf-8 -*-
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {%- set sls_ruby_install = tplroot ~ '.ruby.package.install' %}
7 {%- from tplroot ~ "/map.jinja" import arvados with context %}
9 {%- if arvados.ruby.manage_ruby %}
10 {%- set ruby_dep = 'rvm' if arvados.ruby.use_rvm else 'pkg' %}
14 - {{ sls_ruby_install }}
16 arvados-shell-package-install-pkg-installed:
19 {%- for package in arvados.shell.pkg.name %}
20 # We use version for our Arvados packages only
24 'python3-arvados-fuse',
25 'python3-arvados-python-client',
26 'python3-arvados-cwl-runner',
28 - {{ package }}: {{ arvados.version }}
34 arvados-shell-package-install-gems-deps-pkg-installed:
36 - pkgs: {{ arvados.ruby.gems_deps | json }}
37 - only_if: test "{{ arvados.ruby.manage_gems_deps | lower }}" = "true"
39 {%- for gm in arvados.shell.gem.name %}
40 arvados-shell-package-install-gem-{{ gm }}-installed:
44 {%- if arvados.ruby.manage_ruby %}
45 - {{ ruby_dep }}: arvados-ruby-package-install-ruby-{{ ruby_dep }}-installed
47 - pkg: arvados-shell-package-install-gems-deps-pkg-installed