瀏覽代碼

add ability to configure prime_group without gid (#141)

* add ability to configure prime_group without gid
tags/v0.45.0
Maximilian Zettler 8 年之前
父節點
當前提交
8c6bbafd9b
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      users/init.sls

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

@@ -101,6 +101,8 @@ users_{{ name }}_user:
{% endif -%}
{% if 'prime_group' in user and 'gid' in user['prime_group'] -%}
- gid: {{ user['prime_group']['gid'] }}
{% elif 'prime_group' in user and 'name' in user['prime_group'] %}
- gid: {{ user['prime_group']['name'] }}
{% else -%}
- gid_from_name: True
{% endif -%}

Loading…
取消
儲存