Skip to content
Snippets Groups Projects
Commit 518b0628 authored by Thomas Juberg's avatar Thomas Juberg
Browse files

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

permissions.
parent e3504580
No related branches found
No related tags found
No related merge requests found
......@@ -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'] %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment