summaryrefslogtreecommitdiffstats
path: root/pillar/top.sls
blob: 872dc8b1a7f062d055939c8c94bfc9eafda08055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{%- 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 %}
  '{{ id }}':
    - ignore_missing: True
    - id.{{ id.replace('.', '_') }}