]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/bash/init.sls
Install and manage ntp
[max/saltfiles.git] / states / bash / init.sls
1 bash installed:
2   pkg.installed:
3     - name: app-shells/bash
4
5 include: 
6   - user.max
7
8 {%
9   set files = [
10     'bash_aliases',
11     'bash_profile',
12     'bashrc',
13     'dir_colors',
14     'inputrc',
15     'profile'
16   ]
17 %}
18 {% for file in files %}
19 manage {{ file }}:
20   file.managed:
21     - name: {{ grains['homedir'] }}/.{{ file }}
22     - source: {{ grains['stateroot'] }}/bash/files/{{ file }}
23     - user: {{ grains['user'] }}
24     - group: {{ grains['user'] }}
25     - mode: 660 
26     - template: jinja
27 {% endfor %}