From fa02b954a518dd0c356a34136db654982799cf24 Mon Sep 17 00:00:00 2001 From: Karsten Kosmala Date: Thu, 17 Mar 2016 12:21:23 +0100 Subject: [PATCH] set user and group of user dir in pillar --- users/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/init.sls b/users/init.sls index 03c9cf3..bfe88aa 100644 --- a/users/init.sls +++ b/users/init.sls @@ -59,8 +59,8 @@ users_{{ name }}_user: {% if user.get('createhome', True) %} file.directory: - name: {{ home }} - - user: {{ name }} - - group: {{ user_group }} + - user: {{ user.get('user_dir_user', name) }} + - group: {{ user.get('user_dir_group', user_group) }} - mode: {{ user.get('user_dir_mode', '0750') }} - require: - user: users_{{ name }}_user