From 76ae7eff7f494193e42fae5b0ceac92766e76114 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 5 Nov 2019 14:29:41 +0000 Subject: [PATCH] Fix indentation of HAProxy internal http-request config Related: blueprint add-ssl-internal-network Co-Authored-By: generalfuzz Change-Id: Ib79796d49c415d8314ea5661a16bd2dac8ba7188 --- .../templates/haproxy_single_service_listen.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/haproxy-config/templates/haproxy_single_service_listen.cfg.j2 b/ansible/roles/haproxy-config/templates/haproxy_single_service_listen.cfg.j2 index d8a3dccfcc..b1b133dadf 100644 --- a/ansible/roles/haproxy-config/templates/haproxy_single_service_listen.cfg.j2 +++ b/ansible/roles/haproxy-config/templates/haproxy_single_service_listen.cfg.j2 @@ -46,7 +46,7 @@ listen {{ service_name }} {% if service_mode == 'http' %} {% set tls_option = internal_tls_bind_info %} {# Replace the XFP header for internal https requests #} - http-request set-header X-Forwarded-Proto https if { ssl_fc } + http-request set-header X-Forwarded-Proto https if { ssl_fc } {% endif %} {% endif %} {{ "bind %s:%s %s"|e|format(vip_address, service_port, tls_option)|trim() }}