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

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