diff --git a/roles/confluence_config/templates/confluence.cfg.xml.j2 b/roles/confluence_config/templates/confluence.cfg.xml.j2
index 04d1130..44aef3f 100644
--- a/roles/confluence_config/templates/confluence.cfg.xml.j2
+++ b/roles/confluence_config/templates/confluence.cfg.xml.j2
@@ -26,7 +26,7 @@
{% endif -%}
{# Confluence versions 7.13 and newer #}
- {% if (atl_product_version.split(".")[0] | int() == 7 and atl_product_version.split(".")[1] | int() <= 13) or atl_product_version.split(".")[0] | int() < 7 %}
+ {%- if (atl_product_version.split(".")[0] | int() == 7 and atl_product_version.split(".")[1] | int() <= 13) or atl_product_version.split(".")[0] | int() < 7 -%}
{{ atl_db_poolminsize }}
{{ atl_db_poolmaxsize }}
{{ atl_db_timeout }}
@@ -35,7 +35,7 @@
{{ atl_db_validate }}
{{ atl_db_acquireincrement }}
{{ atl_db_preferredtestquery }}
- {% else %}
+ {%- else -%}
{{ atl_db_timeout }}
{{ atl_db_poolmaxsize }}
{{ atl_db_poolminsize }}
@@ -54,21 +54,24 @@
aws
{{ atl_aws_stack_name }}
1
- {% if atl_tomcat_contextpath is defined and atl_tomcat_contextpath != '' %}
+ {%- if atl_tomcat_contextpath is defined and atl_tomcat_contextpath != '' -%}
{{ atl_tomcat_contextpath }}
{% endif %}
{# config specific to opensearch #}
- {% if atl_opensearch_endpoint is defined and atl_opensearch_endpoint != '' %}
+ {%- if atl_opensearch_endpoint is defined and atl_opensearch_endpoint != '' %}
{# if password provided set password and user but NOT region #}
{% if atl_opensearch_password is defined and atl_opensearch_password != '' %}
+
{{ atl_opensearch_password }}
{{ atl_opensearch_user }}
- {% else %}
+ {%- else %}
+
{{ atl_hazelcast_network_aws_iam_region }}
{% endif %}
+
https://{{ atl_opensearch_endpoint }}
opensearch
- {% endif %}
- {% endif %}
+ {%- endif %}
+
\ No newline at end of file