0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-27 22:38:34 +01:00

add ability to configure prime_group without gid (#141)

* add ability to configure prime_group without gid
This commit is contained in:
Maximilian Zettler 2017-02-02 22:03:36 +01:00 committed by Wolodja Wentland
parent b873db1aee
commit 8c6bbafd9b

View File

@ -101,6 +101,8 @@ users_{{ name }}_user:
{% endif -%}
{% if 'prime_group' in user and 'gid' in user['prime_group'] -%}
- gid: {{ user['prime_group']['gid'] }}
{% elif 'prime_group' in user and 'name' in user['prime_group'] %}
- gid: {{ user['prime_group']['name'] }}
{% else -%}
- gid_from_name: True
{% endif -%}