瀏覽代碼

Merge pull request #170 from car-da/master

change logic when I define user.gid
pull/164/merge
Filip Pytloun 6 年之前
父節點
當前提交
999aff8c6f
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      linux/system/user.sls

+ 4
- 0
linux/system/user.sls 查看文件

@@ -37,7 +37,11 @@ system_user_{{ name }}:
- password: {{ user.password }}
- hash_password: {{ user.get('hash_password', False) }}
{% endif %}
{%- if user.gid is defined and user.gid %}
- gid: {{ user.gid }}
{%- else %}
- gid_from_name: true
{%- endif %}
{%- if user.groups is defined %}
- groups: {{ user.groups }}
{%- endif %}

Loading…
取消
儲存