added groups and polkit rules

This commit is contained in:
Jonas Forsberg
2020-08-17 08:03:41 +02:00
parent b741ad58fc
commit 5b812c749a
5 changed files with 17 additions and 0 deletions

7
salt/states/groups.sls Normal file
View File

@@ -0,0 +1,7 @@
add {{ pillar['username'] }} to optional groups:
user.present:
- name: {{ pillar['username'] }}
- optional_groups:
{% for group, args in pillar['groups'].items() -%}
- {{ group }}
{% endfor %}