Browse Source

Merge pull request #170 from car-da/master

change logic when I define user.gid
pull/164/merge
Filip Pytloun 6 years ago
parent
commit
999aff8c6f
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      linux/system/user.sls

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

- password: {{ user.password }} - password: {{ user.password }}
- hash_password: {{ user.get('hash_password', False) }} - hash_password: {{ user.get('hash_password', False) }}
{% endif %} {% endif %}
{%- if user.gid is defined and user.gid %}
- gid: {{ user.gid }}
{%- else %}
- gid_from_name: true - gid_from_name: true
{%- endif %}
{%- if user.groups is defined %} {%- if user.groups is defined %}
- groups: {{ user.groups }} - groups: {{ user.groups }}
{%- endif %} {%- endif %}

Loading…
Cancel
Save