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

@@ -135,6 +135,12 @@ users_{{ name }}_user:
{% for group in user.get('groups', []) -%}
- {{ group }}
{% endfor %}
{% if 'optional_groups' in user %}
- optional_groups:
{% for optional_group in user['optional_groups'] -%}
- {{optional_group}}
{% endfor %}
{% endif %}
- require:
- group: {{ user_group }}
{% for group in user.get('groups', []) -%}

Loading…
Cancel
Save