aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j2
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j2')
-rw-r--r--ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j2 b/ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j2
index 1cb4d0a21..4aa275b1d 100644
--- a/ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j2
+++ b/ansible/roles/loadbalancer/templates/haproxy/haproxy_run.sh.j2
@@ -5,7 +5,7 @@ set -o pipefail
set -o xtrace
{% if kolla_enable_tls_internal | bool or kolla_enable_tls_external | bool %}
-{% if kolla_enable_tls_external | bool %}
+{% if kolla_enable_tls_external | bool %}
if [ ! -e "/etc/haproxy/certificates/haproxy.pem" ]; then
# Generate temporary self-signed cert
# This means external tls is enabled but the certificate was not copied
@@ -20,8 +20,8 @@ if [ ! -e "/etc/haproxy/certificates/haproxy.pem" ]; then
chown haproxy:haproxy /etc/haproxy/certificates/haproxy.pem
chmod 0660 /etc/haproxy/certificates/haproxy.pem
fi
-{% endif %}
-{% if kolla_enable_tls_internal | bool %}
+{% endif %}
+{% if kolla_enable_tls_internal | bool %}
if [ ! -e "/etc/haproxy/certificates/haproxy-internal.pem" ]; then
# Generate temporary self-signed cert
# This means external tls is enabled but the certificate was not copied
@@ -36,7 +36,7 @@ if [ ! -e "/etc/haproxy/certificates/haproxy-internal.pem" ]; then
chown haproxy:haproxy /etc/haproxy/certificates/haproxy-internal.pem
chmod 0660 /etc/haproxy/certificates/haproxy-internal.pem
fi
-{% endif %}
+{% endif %}
{% endif %}
exec /usr/sbin/haproxy -W -db -p /run/haproxy.pid -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/services.d/