1
0
Fork 0
mirror of synced 2024-12-21 22:21:07 -05:00

Grafana prevent yaml from failing

When including /meta/salt.yml from outside of this
formula the yaml can fail if appropriate pillar elements are not
found. Changing syntax to eliminate this. Including the file
above is needed for generating minion orchestration config
for future use with salt orchestration methods

Change-Id: Ia3fb7eee7c6298d294f641232c8c7e8f8b5806af
Related-PROD: PROD-19973
This commit is contained in:
Oleksii Grudev 2018-07-19 12:41:02 +03:00
parent a0c95206e5
commit c9af93ce61

View file

@ -17,7 +17,7 @@ grain:
{%- endif %}
minion:
{%- if pillar.grafana.client is defined %}
{%- if pillar.get('grafana', {}).client is defined %}
grafana:
{%- from "grafana/map.jinja" import client with context %}
grafana_version: {{ client.server.get('version', 3) }}