0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 00:48:22 +01:00

Add 'createhome' option for 'user.present' state

This commit is contained in:
Adam Wright 2014-09-07 13:23:06 +08:00
parent b77b198edf
commit 8e1d91b3f1
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ users:
fullname: B User
password: $6$w.............
home: /custom/buser
createhome: True
sudouser: True
sudo_rules:
- ALL=(root) /usr/bin/find

View File

@ -55,6 +55,9 @@
{% if 'fullname' in user %}
- fullname: {{ user['fullname'] }}
{% endif -%}
{% if not user.get('createhome', True) %}
- createhome: False
{% endif %}
- groups:
- {{ user_group }}
{% for group in user.get('groups', []) -%}