0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 00:48:22 +01:00

SLS no longer fails for multiple groups

This commit is contained in:
Tomáš Fejfar 2014-01-14 15:00:41 +01:00
parent 6ec7611a0f
commit 7d1793cf00

View File

@ -14,7 +14,7 @@ include:
{%- endif %}
{% for group in user.get('groups', []) %}
{{ group }}_group:
{{ name }}_{{ group }}_group:
group:
- name: {{ group }}
- present
@ -87,7 +87,7 @@ user_{{ name }}_private_key:
- require:
- user: {{ name }}_user
{% for group in user.get('groups', []) %}
- group: {{ group }}_group
- group: {{ name }}_{{ group }}_group
{% endfor %}
user_{{ name }}_public_key:
file.managed:
@ -99,7 +99,7 @@ user_{{ name }}_public_key:
- require:
- user: {{ name }}_user
{% for group in user.get('groups', []) %}
- group: {{ group }}_group
- group: {{ name }}_{{ group }}_group
{% endfor %}
{% endif %}