Browse Source

Merge pull request #131 from heap/templates

Add ability to use templated user files
lookup-fix-3
Niels Abspoel 7 years ago
parent
commit
00fc0c2d33
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      users/profile.sls
  2. +2
    -1
      users/vimrc.sls

+ 1
- 0
users/profile.sls View File

- user: {{ name }} - user: {{ name }}
- group: {{ user_group }} - group: {{ user_group }}
- mode: 644 - mode: 644
- template: jinja
- source: - source:
- salt://users/files/profile/{{ name }}/profile - salt://users/files/profile/{{ name }}/profile
- salt://users/files/profile/profile - salt://users/files/profile/profile

+ 2
- 1
users/vimrc.sls View File

- user: {{ name }} - user: {{ name }}
- group: {{ user_group }} - group: {{ user_group }}
- mode: 644 - mode: 644
- source:
- template: jinja
- source:
- salt://users/files/vimrc/{{ name }}/vimrc - salt://users/files/vimrc/{{ name }}/vimrc
- salt://users/files/vimrc/vimrc - salt://users/files/vimrc/vimrc
{% endif %} {% endif %}

Loading…
Cancel
Save