Files: 784864d05c53a017443132c04769c3b9116bcc02 / salt / state / top.sls
298 bytesRaw
1 | production: |
2 | {% set roles = salt['grains.get']('roles', []) -%} |
3 | {% for role in roles -%} |
4 | 'roles:{{ role }}': |
5 | - match: grain |
6 | {% if role == 'master' -%} |
7 | - salt.master |
8 | {% elif role == 'minion' -%} |
9 | - salt.minion |
10 | {% else -%} |
11 | - {{ role }} |
12 | {% endif %} |
13 | |
14 | {% endfor %} |
15 |
Built with git-ssb-web