Browse Source

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.
tags/v0.45.0
Raphaël Hertzog 8 years ago
parent
commit
cf122d1bd6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      users/init.sls

+ 3
- 0
users/init.sls View File

{%- elif 'uid' in user %} {%- elif 'uid' in user %}
- gid: {{ user['uid'] }} - gid: {{ user['uid'] }}
{%- endif %} {%- endif %}
{% if 'system' in user and user['system'] %}
- system: True
{% endif %}
user.present: user.present:
- name: {{ name }} - name: {{ name }}
- home: {{ home }} - home: {{ home }}

Loading…
Cancel
Save