summaryrefslogtreecommitdiffstats
path: root/salt/top.sls
blob: de9b24b96c4eda499a630b3360ab856bb5f2a735 (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 }}:
  '*':
    - baseline
  {% for role in roles %}
  'roles:{{ role }}':
    - match: grain
    - role.{{ role }}
  {% endfor %}