net/haproxy: fixes for haproxy.conf

This commit is contained in:
Frank Wall
2016-06-13 14:38:37 +02:00
parent f775592ee7
commit 6856f354e5
@@ -652,7 +652,7 @@ backend {{backend.name}}
{# # health check option #}
{% set healthcheck_options = [] %}
{% if healthcheck_data.type|default("") == "" %}
{% set healthcheck_enabled = '1' %}
{% set healthcheck_enabled = '0' %}
{% elif healthcheck_data.type == 'tcp' %}
{# # TCP check does not require additional options #}
{% elif healthcheck_data.type == 'http' %}
@@ -768,7 +768,7 @@ backend {{backend.name}}
{% set server_data = helpers.getUUID(server) %}
{# # collect optional server parameters #}
{% set server_options = [] %}
{# if# check if health check is enabled #}("") != "" %}
{# # check if health check is enabled # %}
{% if healthcheck_enabled == '1' %}
{% do server_options.append('check') %}
{% do server_options.append('inter ' ~ server_data.checkInterval) %}