summaryrefslogtreecommitdiffstats
path: root/salt
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-03-11 18:10:07 +0100
committerGeorg Pfuetzenreuter2023-03-11 18:10:07 +0100
commitc932881cd70bd64db40245ea1e3df283f3859c78 (patch)
treee5ed2f92ea06613431b6970434911bb483a9b2e0 /salt
parenta1ce36fd6c5e4ed6e1f23eb7036c11c73fb6a323 (diff)
downloadsalt-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')
-rw-r--r--salt/profile/bookstack/init.sls8
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') }}