Browse Source

Add ability to use templated user files

lookup-fix-3
Toby Brain 8 years ago
parent
commit
7c67d72ef0
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

@@ -21,6 +21,7 @@ users_{{ name }}_user_profile:
- user: {{ name }}
- group: {{ user_group }}
- mode: 644
- template: jinja
- source:
- salt://users/files/profile/{{ name }}/profile
- salt://users/files/profile/profile

+ 2
- 1
users/vimrc.sls View File

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

Loading…
Cancel
Save