0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 02:57:55 +01:00

Add ability to use templated user files

This commit is contained in:
Toby Brain 2016-09-22 10:02:24 +10:00
parent c76173753c
commit 7c67d72ef0
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ users_{{ name }}_user_profile:
- 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

View File

@ -22,6 +22,7 @@ users_{{ name }}_user_vimrc:
- user: {{ name }} - user: {{ name }}
- group: {{ user_group }} - group: {{ user_group }}
- mode: 644 - mode: 644
- template: jinja
- source: - source:
- salt://users/files/vimrc/{{ name }}/vimrc - salt://users/files/vimrc/{{ name }}/vimrc
- salt://users/files/vimrc/vimrc - salt://users/files/vimrc/vimrc