瀏覽代碼

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.
lookup-fix-3
Raphaël Hertzog 8 年之前
父節點
當前提交
cf122d1bd6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      users/init.sls

+ 3
- 0
users/init.sls 查看文件

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

Loading…
取消
儲存