瀏覽代碼

Merge pull request #131 from heap/templates

Add ability to use templated user files
lookup-fix-3
Niels Abspoel 7 年之前
父節點
當前提交
00fc0c2d33
共有 2 個檔案被更改,包括 3 行新增1 行删除
  1. +1
    -0
      users/profile.sls
  2. +2
    -1
      users/vimrc.sls

+ 1
- 0
users/profile.sls 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存