2023-01-15 11:41:05 +01:00
|
|
|
{% 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 }}':
|
2023-01-15 12:37:11 +01:00
|
|
|
- ignore_missing: True
|
2023-01-15 11:41:05 +01:00
|
|
|
- id.{{ id.replace('.', '_') }}
|