Fix haproxy service config when ssl is enabled

This patch fixes the formatting for an haproxy service which has
ssl enabled.

Without this patch the 'reqadd X-Forwarded-Proto' line ends up
on the same line as the 'set request_option' line.

Change-Id: I0567797304646d7da9badfd193a1368b8a97b0db
Closes-Bug: #1475242
This commit is contained in:
Jesse Pretorius 2015-07-16 11:24:15 +01:00
parent 76680e9abd
commit 7984844008

View File

@ -13,6 +13,7 @@ bind {{ item.service.haproxy_bind|default('*') }}:{{ item.service.haproxy_port }
option tcplog
{%- set request_option = "tcp" %}
{% endif %}
{% if item.service.haproxy_ssl is defined and item.service.haproxy_ssl | bool %}
reqadd X-Forwarded-Proto:\ https
{% endif %}