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

Create a system usergroup if user is a system user

If the user to be created is a system user, it makes no sense to create
him a primary group which is not a system group too.
This commit is contained in:
Raphaël Hertzog 2016-06-22 12:08:39 +02:00
parent ee75a7ecd1
commit cf122d1bd6

View File

@ -73,6 +73,9 @@ users_{{ name }}_user:
{%- elif 'uid' in user %}
- gid: {{ user['uid'] }}
{%- endif %}
{% if 'system' in user and user['system'] %}
- system: True
{% endif %}
user.present:
- name: {{ name }}
- home: {{ home }}