salt/pillar/top.sls
Georg Pfuetzenreuter 4b08299e0c
Init pillar
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-15 11:41:05 +01:00

14 lines
281 B
Plaintext

{% 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('.', '_') }}