1 # -*- coding: utf-8 -*-
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {%- set sls_config_file = tplroot ~ '.config.file' %}
7 {%- set sls_ruby_install = tplroot ~ '.ruby.package.install' %}
8 {%- from tplroot ~ "/map.jinja" import arvados with context %}
10 {%- if arvados.ruby.manage_ruby %}
11 {%- set ruby_dep = 'rvm' if arvados.ruby.use_rvm else 'pkg' %}
15 # The workbench server requires a valid config BEFORE installing...
16 - {{ sls_config_file }}
17 - {{ sls_ruby_install }}
19 arvados-workbench-package-install-gems-deps-pkg-installed:
21 - pkgs: {{ arvados.ruby.gems_deps | json }}
22 - onlyif: test "{{ arvados.ruby.manage_gems_deps | lower }}" = "true"
24 arvados-workbench-package-install-pkg-installed:
26 - name: {{ arvados.workbench.pkg.name }}
27 - version: {{ arvados.version }}
29 - sls: {{ sls_config_file }}