summaryrefslogtreecommitdiffstats
path: root/salt/profile/bookstack/init.sls
diff options
context:
space:
mode:
Diffstat (limited to 'salt/profile/bookstack/init.sls')
-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') }}