summaryrefslogtreecommitdiffstats
path: root/salt/top.sls
blob: d937aad6217c557c1c7c87337fe2e96072f2880a (plain)
1
2
3
4
5
6
7
8
9
10
11
{% set client_id = salt['grains.get']('id') %}
{% set roles = salt['grains.get']('roles', []) %}

{{ saltenv }}:
  '*':
    - common
  {% for role in roles %}
  'roles:{{ role }}':
    - match: grain
    - role.{{ role }}
  {% endfor %}