This repository has been archived on 2023-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
salt-states_old/common/groups.sls
2020-12-22 11:46:20 +01:00

14 lines
351 B
Plaintext

{% if pillar['groups'] is defined %}
{% for group, args in pillar['groups'].items() %}
Added {{ group }} group:
group.present:
- name: {{ group }}
{% if args['gid'] is defined %}
- gid: {{ args['gid'] }}
{% endif %}
{%if args['system'] is defined %}
- system: {{ args['system'] }} %}
{% endif %}
{% endfor %}
{% endif %}