Commit 784864d05c53a017443132c04769c3b9116bcc02
twiddle
Michael Williams committed on 12/24/2017, 1:30:58 AMParent: e478721869a547eee7c709539400251eab4fd204
Files changed
salt/state/top.sls | changed |
salt/state/top.sls | |||
---|---|---|---|
@@ -1,17 +1,14 @@ | |||
1 | 1 … | production: | |
2 | - '*': | ||
3 | - - agents | ||
4 | - | ||
5 | 2 … | {% set roles = salt['grains.get']('roles', []) -%} | |
6 | 3 … | {% for role in roles -%} | |
7 | 4 … | 'roles:{{ role }}': | |
8 | 5 … | - match: grain | |
9 | 6 … | {% if role == 'master' -%} | |
10 | 7 … | - salt.master | |
11 | 8 … | {% elif role == 'minion' -%} | |
12 | 9 … | - salt.minion | |
13 | - {% else %} | ||
10 … | + {% else -%} | ||
14 | 11 … | - {{ role }} | |
15 | 12 … | {% endif %} | |
16 | 13 … | ||
17 | 14 … | {% endfor %} |
Built with git-ssb-web