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