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