Browse Source

Merge pull request #46 from hipikat/master

Add 'createhome' option for 'user.present' state
lookup-fix-3
Nitin Madhok 10 years ago
parent
commit
55d7912363
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      pillar.example
  2. +3
    -0
      users/init.sls

+ 1
- 0
pillar.example 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

+ 3
- 0
users/init.sls 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', []) -%}

Loading…
Cancel
Save