Fixes: PROD-21350 Change-Id: If5a4473296e4d2cb6a80cb7397ac38a66011f39dpull/162/head
@@ -49,6 +49,7 @@ will be removed. | |||
shell: /bin/bash | |||
full_name: 'Jonh Doe' | |||
home: '/home/jdoe' | |||
home_dir_mode: 755 | |||
email: 'jonh@doe.com' | |||
jsmith: | |||
name: 'jsmith' |
@@ -55,7 +55,7 @@ system_user_home_{{ user.home }}: | |||
file.directory: | |||
- name: {{ user.home }} | |||
- user: {{ name }} | |||
- mode: 700 | |||
- mode: {{ user.get('home_dir_mode', 700) }} | |||
- makedirs: true | |||
- require: | |||
- user: system_user_{{ name }} |
@@ -79,6 +79,7 @@ linux: | |||
uid: 9991 | |||
full_name: Salt User1 | |||
home: /home/saltuser1 | |||
home_dir_mode: 755 | |||
salt_user2: | |||
enabled: true | |||
name: saltuser2 |