From 518b06281a1cc93aea4288723081552b053599e6 Mon Sep 17 00:00:00 2001 From: Thomas Juberg Date: Mon, 22 Dec 2014 14:32:41 +0100 Subject: [PATCH] If createhome is set to false, don't touch the home directory or its permissions. --- users/init.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/init.sls b/users/init.sls index 9fba180..90ec353 100644 --- a/users/init.sls +++ b/users/init.sls @@ -22,6 +22,7 @@ {% endfor %} {{ name }}_user: + {% if user.get('createhome', True) != False %} file.directory: - name: {{ home }} - user: {{ name }} @@ -30,6 +31,7 @@ - require: - user: {{ name }} - group: {{ user_group }} + {%- endif %} group.present: - name: {{ user_group }} {%- if 'prime_group' in user and 'gid' in user['prime_group'] %}