Rundeck 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: Ibe5d4e0dda7e0800dca1cf7965d1b9cc10bba02e
Related-PROD: PROD-19973
diff --git a/rundeck/meta/salt.yml b/rundeck/meta/salt.yml
index 6c66279..e9e8c57 100644
--- a/rundeck/meta/salt.yml
+++ b/rundeck/meta/salt.yml
@@ -1,5 +1,5 @@
minion:
- {%- if pillar.rundeck.client is defined %}
+ {%- if pillar.get('rundeck', {}).client is defined %}
rundeck:
{%- from "rundeck/map.jinja" import client with context %}
{%- from "rundeck/map.jinja" import make_url with context %}