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

{{ saltenv }}:
  '*':
    - common
  {% for role in roles %}
  'roles:{{ role }}':
    - match: grain
    - role.{{ role }}
  {%- endfor %}
  '{{ id }}':
    - id.{{ id.replace('.', '_') }}