From 7d1793cf00976558248eeae195bd3f4a9dad2658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Fejfar?= Date: Tue, 14 Jan 2014 15:00:41 +0100 Subject: [PATCH] SLS no longer fails for multiple groups --- users/init.sls | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/users/init.sls b/users/init.sls index 4096993..b400981 100644 --- a/users/init.sls +++ b/users/init.sls @@ -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 %}