Quellcode durchsuchen

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 vor 8 Jahren
Ursprung
Commit
cf122d1bd6
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. +3
    -0
      users/init.sls

+ 3
- 0
users/init.sls Datei anzeigen

@@ -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 }}

Laden…
Abbrechen
Speichern