dotfiles/salt/states/groups.sls
2020-08-17 08:03:41 +02:00

8 lines
224 B
Plaintext

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