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

14 lines
351 B
Plaintext
Raw Permalink Normal View History

2020-12-22 10:46:20 +00:00
{% 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 %}