dotfiles/salt/states/groups.sls

8 lines
224 B
Plaintext
Raw Normal View History

2020-08-17 06:03:41 +00:00
add {{ pillar['username'] }} to optional groups:
user.present:
- name: {{ pillar['username'] }}
- optional_groups:
{% for group, args in pillar['groups'].items() -%}
- {{ group }}
{% endfor %}