Browse Source

Support for optional_groups

tags/v0.45.0
jraby 8 years ago
parent
commit
5538eb18ab
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      users/init.sls

+ 6
- 0
users/init.sls View File

{% for group in user.get('groups', []) -%} {% for group in user.get('groups', []) -%}
- {{ group }} - {{ group }}
{% endfor %} {% endfor %}
{% if 'optional_groups' in user %}
- optional_groups:
{% for optional_group in user['optional_groups'] -%}
- {{optional_group}}
{% endfor %}
{% endif %}
- require: - require:
- group: {{ user_group }} - group: {{ user_group }}
{% for group in user.get('groups', []) -%} {% for group in user.get('groups', []) -%}

Loading…
Cancel
Save