Georg Pfuetzenreuter
cce6cce594
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
13 lines
381 B
Plaintext
13 lines
381 B
Plaintext
{%- set id = salt['grains.get']('id') -%}
|
|
{%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": id})['dict']['roles'] -%}
|
|
|
|
{{ saltenv }}:
|
|
'*':
|
|
- common
|
|
'{{ id }}':
|
|
- ignore_missing: True
|
|
- id.{{ id.replace('.', '_') }}
|
|
{%- for role in roles %}
|
|
- role.{{ role }}
|
|
{%- endfor %}
|