Enforce ID and roles in top
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Adapt to current private pillar top:
- match ID grain for inclusion of ID files
- move roles under conditional

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-22 22:32:39 +01:00
parent 48c9e05de1
commit 0457625204
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -4,9 +4,14 @@
{{ saltenv }}:
'*':
- common
'{{ id }}':
'id:{{ id }}':
- match: grain
- ignore_missing: True
- id.{{ id.replace('.', '_') }}
{%- for role in roles %}
{%- if roles | length > 0 %}
'{{ id }}':
{% for role in roles %}
- ignore_missing: True
- role.{{ role }}
{%- endfor %}
{%- endif %}