Browse Source

Merge pull request #11 from w3w/fix-multiple-groups

SLS no longer fails for multiple groups
tags/v0.45.0
Seth House 11 years ago
parent
commit
4e1c754183
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      users/init.sls

+ 3
- 3
users/init.sls View File

{%- endif %} {%- endif %}


{% for group in user.get('groups', []) %} {% for group in user.get('groups', []) %}
{{ group }}_group:
{{ name }}_{{ group }}_group:
group: group:
- name: {{ group }} - name: {{ group }}
- present - present
- require: - require:
- user: {{ name }}_user - user: {{ name }}_user
{% for group in user.get('groups', []) %} {% for group in user.get('groups', []) %}
- group: {{ group }}_group
- group: {{ name }}_{{ group }}_group
{% endfor %} {% endfor %}
user_{{ name }}_public_key: user_{{ name }}_public_key:
file.managed: file.managed:
- require: - require:
- user: {{ name }}_user - user: {{ name }}_user
{% for group in user.get('groups', []) %} {% for group in user.get('groups', []) %}
- group: {{ group }}_group
- group: {{ name }}_{{ group }}_group
{% endfor %} {% endfor %}
{% endif %} {% endif %}



Loading…
Cancel
Save