paulbsd-salt/states/users/groups.sls

13 lines
239 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "users/map.jinja" import groups with context -%}
{%- for name,group in groups.items() %}
group-{{ name }}:
2020-07-10 00:58:55 +02:00
{%- if group.enabled %}
group.present:
{%- else %}
group.absent:
{%- endif %}
- name: {{ name }}
2020-07-10 00:58:55 +02:00
{% endfor %}