Enforce ID and roles in top
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
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:
parent
48c9e05de1
commit
0457625204
@ -4,9 +4,14 @@
|
|||||||
{{ saltenv }}:
|
{{ saltenv }}:
|
||||||
'*':
|
'*':
|
||||||
- common
|
- common
|
||||||
'{{ id }}':
|
'id:{{ id }}':
|
||||||
|
- match: grain
|
||||||
- ignore_missing: True
|
- ignore_missing: True
|
||||||
- id.{{ id.replace('.', '_') }}
|
- id.{{ id.replace('.', '_') }}
|
||||||
{%- for role in roles %}
|
{%- if roles | length > 0 %}
|
||||||
|
'{{ id }}':
|
||||||
|
{% for role in roles %}
|
||||||
|
- ignore_missing: True
|
||||||
- role.{{ role }}
|
- role.{{ role }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{%- endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user