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

{{ saltenv }}:
  '*':
    - common
  {%- if roles | length > 0 %}
  '{{ id }}':
  {% for role in roles %}
    - role.{{ role }}
  {%- endfor %}
  {%- endif %}