Repair undefined id
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Replace with call to grains dict.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-04-30 20:11:24 +02:00
parent d8263f9b80
commit 1290fd5ec7
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -1,4 +1,4 @@
{%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": id})['dict']['roles'] -%} {%- set roles = salt['http.query']('http://machine-roles.lysergic.dev:4580/roles', decode=True, decode_type='json', params={"machine": grains['id']})['dict']['roles'] -%}
include: include:
{#- drop pillar check after all firewall configurations have been imported #} {#- drop pillar check after all firewall configurations have been imported #}