Fix automatical adding of httpchk
Change-Id: I15db820d3ac1180017605a5915206dbb0a93576b
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index 190db1b..ee6bd73 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -169,8 +169,8 @@
{%- endfor %}
{%- for type, checks in listen.get('health-check', {}).iteritems() %}
{%- if checks.get('enabled', True) %}
- {%- if type + '-check' not in listen.get('options', []) %}
- option {{ type }}-check
+ {%- if type == 'http' and 'httpchk' not in listen.get('options', []) %}
+ option httpchk
{%- endif %}
{%- for option in checks.get('options', []) %}
{{ type }}-check {{ option }}