From 0e76454a166f5e06a0d8e7aea577d6deeb508878 Mon Sep 17 00:00:00 2001 From: Diego Woitasen Date: Fri, 14 Mar 2014 20:07:22 -0300 Subject: [PATCH] Add absent_groups pillar to remove groups. --- users/init.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/users/init.sls b/users/init.sls index be0471f..17a5ca7 100644 --- a/users/init.sls +++ b/users/init.sls @@ -151,3 +151,9 @@ sudoer-{{ name }}: file.absent: - name: /etc/sudoers.d/{{ user }} {% endfor %} + +{% for group in pillar.get('absent_groups', []) %} +{{ group }}: + group.absent +{% endfor %} +