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 {%- set sls_config_file = tplroot ~ '.config.file' %}
11 {%- set sls_ruby_install = tplroot ~ '.ruby.package.install' %}
12 {%- from tplroot ~ "/map.jinja" import arvados with context %}
14 {%- if arvados.ruby.manage_ruby %}
15 {%- set ruby_dep = 'rvm' if arvados.ruby.use_rvm else 'pkg' %}
19 # The workbench server requires a valid config BEFORE installing...
20 - {{ sls_config_file }}
21 - {{ sls_ruby_install }}
23 arvados-workbench-package-install-gems-deps-pkg-installed:
25 - pkgs: {{ arvados.ruby.gems_deps | json }}
26 - onlyif: test "{{ arvados.ruby.manage_gems_deps | lower }}" = "true"
28 arvados-workbench-package-install-pkg-installed:
30 - name: {{ arvados.workbench.pkg.name }}
31 - version: {{ arvados.version }}
33 {%- if arvados.ruby.manage_ruby %}
34 - {{ ruby_dep }}: arvados-ruby-package-install-ruby-{{ ruby_dep }}-installed
36 - sls: {{ sls_config_file }}