From 7c67d72ef05b01b865c04ecc9c2b4c2f6302f24f Mon Sep 17 00:00:00 2001 From: Toby Brain Date: Thu, 22 Sep 2016 10:02:24 +1000 Subject: [PATCH] Add ability to use templated user files --- users/profile.sls | 1 + users/vimrc.sls | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/users/profile.sls b/users/profile.sls index 55ac8e2..3c30d8c 100644 --- a/users/profile.sls +++ b/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 diff --git a/users/vimrc.sls b/users/vimrc.sls index 5404738..f4d008a 100644 --- a/users/vimrc.sls +++ b/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 %}