paulbsd-salt/states/users/groups.sls

13 lines
239 B
Plaintext

---
{%- from "users/map.jinja" import groups with context -%}
{%- for name,group in groups.items() %}
group-{{ name }}:
{%- if group.enabled %}
group.present:
{%- else %}
group.absent:
{%- endif %}
- name: {{ name }}
{% endfor %}