summaryrefslogtreecommitdiffstats
path: root/pillar/top.sls
blob: 3302bd854e49b25c8e772caf1b3e323866e42105 (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
  '{{ id }}':
    - ignore_missing: True
    - id.{{ id.replace('.', '_') }}
  {% for role in roles %}
    - role.{{ role }}
  {%- endfor %}