diff options
author | Georg Pfuetzenreuter | 2023-03-11 18:10:07 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-03-11 18:10:07 +0100 |
commit | c932881cd70bd64db40245ea1e3df283f3859c78 (patch) | |
tree | e5ed2f92ea06613431b6970434911bb483a9b2e0 /salt/profile/bookstack/init.sls | |
parent | a1ce36fd6c5e4ed6e1f23eb7036c11c73fb6a323 (diff) | |
download | salt-bookstack.tar.gz salt-bookstack.tar.bz2 salt-bookstack.zip |
profile.bookstack: quote keysbookstack
Some keys needed quoting to pass the YAML parser.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'salt/profile/bookstack/init.sls')
-rw-r--r-- | salt/profile/bookstack/init.sls | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/salt/profile/bookstack/init.sls b/salt/profile/bookstack/init.sls index af14a4b..3dc5a36 100644 --- a/salt/profile/bookstack/init.sls +++ b/salt/profile/bookstack/init.sls @@ -24,7 +24,12 @@ bookstack_permissions: - key_values: {%- macro condconf(option) %} {%- if option in mypillar -%} - {{ option | upper }}: {{ mypillar[option] }} + {%- if mypillar[option] is string and mypillar[option].startswith('$') or mypillar[option] is number %} + {%- set value = mypillar[option] %} + {%- else %} + {%- set value = mypillar[option] | quote %} + {%- endif %} + {{ option | upper }}: {{ value }} {%- endif -%} {%- endmacro %} {{ condconf('app_url') }} @@ -55,7 +60,6 @@ bookstack_permissions: {{ condconf('saml2_external_id_attribute') }} {{ condconf('saml2_display_name_attributes') }} {{ condconf('saml2_idp_entityid') }} - {{ condconf('saml2_idp_entityid') }} {{ condconf('saml2_idp_sso') }} {{ condconf('saml2_idp_slo') }} {{ condconf('saml2_idp_x509') }} |