diff --git a/users/init.sls b/users/init.sls index 2638da5..30ea466 100644 --- a/users/init.sls +++ b/users/init.sls @@ -58,6 +58,11 @@ {% if not user.get('createhome', True) %} - createhome: False {% endif %} + {% if user.get('remove_groups', True) %} + - remove_groups: True + {% else %} + - remove_groups: False + {% endif %} - groups: - {{ user_group }} {% for group in user.get('groups', []) -%}