Browse Source

change logic when I define user.gid

pull/170/head
Jaroslav Steinhaisl 6 years ago
parent
commit
eb04f1e6e3
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      linux/system/user.sls

+ 4
- 0
linux/system/user.sls View File

@@ -37,7 +37,11 @@ system_user_{{ name }}:
- password: {{ user.password }}
- hash_password: {{ user.get('hash_password', False) }}
{% endif %}
{%- if user.gid is defined and user.gid %}
- gid: {{ user.gid }}
{%- else %}
- gid_from_name: true
{%- endif %}
{%- if user.groups is defined %}
- groups: {{ user.groups }}
{%- endif %}

Loading…
Cancel
Save