fix(shellinabox): renamed pam file
[arvados-formula.git] / arvados / shell / config / file.sls
1 # -*- coding: utf-8 -*-
2 # vim: ft=sls
3
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 %}
9
10 include:
11   - {{ sls_package_install }}
12
13 arvados-shell-config-file-shellinabox-file-managed:
14   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',
18                               use_subpath=True
19                  )
20               }}
21     - mode: 644
22     - user: root
23     - group: root
24     - makedirs: true
25     - template: jinja
26     - require:
27       - sls: {{ sls_package_install }}
28     - context:
29         arvados: {{ arvados | json }}
30
31 arvados-shell-config-file-pam-shellinabox-file-managed:
32   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',
36                               use_subpath=True
37                  )
38               }}
39     - mode: 644
40     - user: root
41     - group: root
42     - makedirs: true
43     - template: jinja
44     - require:
45       - sls: {{ sls_package_install }}
46     - context:
47         arvados: {{ arvados | json }}