1 # -*- coding: utf-8 -*-
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {%- set sls_package_install = tplroot ~ '.shell.package.install' %}
7 {%- from tplroot ~ "/map.jinja" import arvados with context %}
8 {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
11 - {{ sls_package_install }}
13 arvados-shell-config-file-shellinabox-file-managed:
15 - name: {{ arvados.shell.shellinabox.config }}
16 - source: {{ files_switch(['shell-shellinabox.tmpl.jinja'],
17 lookup='arvados-shell-config-file-shellinabox-file-managed',
27 - sls: {{ sls_package_install }}
29 arvados: {{ arvados | json }}
31 arvados-shell-config-file-pam-shellinabox-file-managed:
33 - name: /etc/pam.d/shellinabox
34 - source: {{ files_switch(['shell-pam-shellinabox.tmpl.jinja'],
35 lookup='arvados-shell-config-file-pam-shellinabox-file-managed',
45 - sls: {{ sls_package_install }}
47 arvados: {{ arvados | json }}