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:
parent
a0c95206e5
commit
c9af93ce61
1 changed files with 1 additions and 1 deletions
|
@ -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) }}
|
||||
|
|
Loading…
Reference in a new issue