瀏覽代碼

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

SLS no longer fails for multiple groups
tags/v0.45.0
Seth House 11 年之前
父節點
當前提交
4e1c754183
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      users/init.sls

+ 3
- 3
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 %}


Loading…
取消
儲存