From def8f53932cf9aa500bc334d635792e94cac2bbc Mon Sep 17 00:00:00 2001 From: "Adrien \"ze\" Urban" Date: Thu, 7 Mar 2019 11:58:57 +0100 Subject: [PATCH] group: add support for members members, addusers, delusers, and in pillar examples --- pillar.example | 7 +++++++ users/init.sls | 3 +++ 2 files changed, 10 insertions(+) diff --git a/pillar.example b/pillar.example index 424f602..467e8dd 100644 --- a/pillar.example +++ b/pillar.example @@ -176,3 +176,10 @@ groups: niceguys: gid: 4242 system: False + addusers: root + delusers: toor + ssl-cert: + system: True + members: + - www-data + - openldap diff --git a/users/init.sls b/users/init.sls index 8804b6c..8af84d5 100644 --- a/users/init.sls +++ b/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 %}