git ssb

1+

dinoworm ๐Ÿ› / butt-as-a-service



Tree: e478721869a547eee7c709539400251eab4fd204

Files: e478721869a547eee7c709539400251eab4fd204 / salt / state / top.sls

318 bytesRaw
1production:
2 '*':
3 - agents
4
5 {% set roles = salt['grains.get']('roles', []) -%}
6 {% for role in roles -%}
7 'roles:{{ role }}':
8 - match: grain
9 {% if role == 'master' -%}
10 - salt.master
11 {% elif role == 'minion' -%}
12 - salt.minion
13 {% else %}
14 - {{ role }}
15 {% endif %}
16
17 {% endfor %}
18

Built with git-ssb-web