瀏覽代碼

group: add support for members

members, addusers, delusers, and in pillar examples
tags/v0.45.0
Adrien "ze" Urban 5 年之前
父節點
當前提交
def8f53932
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. +7
    -0
      pillar.example
  2. +3
    -0
      users/init.sls

+ 7
- 0
pillar.example 查看文件

@@ -176,3 +176,10 @@ groups:
niceguys:
gid: 4242
system: False
addusers: root
delusers: toor
ssl-cert:
system: True
members:
- www-data
- openldap

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

@@ -15,6 +15,9 @@ users_group_present_{{ group }}:
- name: {{ group }}
- gid: {{ setting.get('gid') }}
- system: {{ setting.get('system',"False") }}
- members: {{ setting.get('members')|json }}
- addusers: {{ setting.get('addusers')|json }}
- delusers: {{ setting.get('delusers')|json }}
{% endif %}
{% endfor %}


Loading…
取消
儲存