Use central machine-roles endpoint
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-22 16:52:22 +01:00
parent 0efd688151
commit cce6cce594
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{%- set id = salt['grains.get']('id') -%}
{%- set roles = salt['http.query']('http://127.0.0.1:5000/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": id})['dict']['roles'] -%}
{{ saltenv }}:
'*':

View File

@ -1,5 +1,5 @@
{%- set id = salt['grains.get']('id') -%}
{%- set roles = salt['http.query']('http://127.0.0.1:5000/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": id})['dict']['roles'] -%}
{{ saltenv }}:
'*':