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 {%- from tplroot ~ "/map.jinja" import arvados with context %}
9 # The workbench server requires a valid config BEFORE installing...
11 - {{ sls_config_file }}
13 arvados-workbench-package-install-ruby-pkg-installed:
15 - name: {{ arvados.ruby.pkg }}
16 - only_if: test "{{ arvados.ruby.manage_ruby | lower }}" = "true"
18 arvados-workbench-package-install-gems-deps-pkg-installed:
20 - pkgs: {{ arvados.ruby.gems_deps | json }}
21 - only_if: test "{{ arvados.ruby.manage_gems_deps | lower }}" = "true"
23 arvados-workbench-package-install-pkg-installed:
25 - name: {{ arvados.workbench.pkg.name }}
26 - version: {{ arvados.version }}
28 - sls: {{ sls_config_file }}