Fix missing default value for health-check
Change-Id: I3cde20d3232ba6b1936231c8df7b1032948a2ec5
diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg
index a395973..5ab108b 100644
--- a/haproxy/files/haproxy.cfg
+++ b/haproxy/files/haproxy.cfg
@@ -84,8 +84,8 @@
option srvtcpka
timeout client 300s
timeout server 300s
- {%- if listen.get('health-check').get('mysql', {}).get('enabled', True) %}
- # option conflict's wiht port check of clustercheck script, if enabled haproxy reports invalid reponse
+ {%- if listen.get('health-check', {}).get('mysql', {}).get('enabled', True) %}
+ # option conflict's with port check of clustercheck script, if enabled haproxy reports invalid reponse
option mysql-check user haproxy
{%- endif %}
{%- elif listen.get('type', None) == 'pgsql' %}
@@ -97,7 +97,7 @@
option srvtcpka
timeout client 28801s
timeout server 28801s
- {%- if listen.get('health-check').get('pgsql', {}).get('enabled', True) %}
+ {%- if listen.get('health-check', {}).get('pgsql', {}).get('enabled', True) %}
option pgsql-check user postgres
{%- endif %}
{%- elif listen.get('type', None) == 'horizon' %}