Browse Source

If createhome is set to false, don't touch the home directory or its

permissions.
lookup-fix-3
Thomas Juberg 10 years ago
parent
commit
518b06281a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      users/init.sls

+ 2
- 0
users/init.sls View File

@@ -22,6 +22,7 @@
{% endfor %}

{{ name }}_user:
{% if user.get('createhome', True) != False %}
file.directory:
- name: {{ home }}
- user: {{ name }}
@@ -30,6 +31,7 @@
- require:
- user: {{ name }}
- group: {{ user_group }}
{%- endif %}
group.present:
- name: {{ user_group }}
{%- if 'prime_group' in user and 'gid' in user['prime_group'] %}

Loading…
Cancel
Save