profile.bookstack: quote keys
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful

Some keys needed quoting to pass the YAML parser.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-03-11 18:10:07 +01:00
parent a1ce36fd6c
commit c932881cd7
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -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') }}