diff --git a/templates/haproxy_cfg.jinja2 b/templates/haproxy_cfg.jinja2 index 110e09a5298a2ed76aad9c5b26dcc2d092fdbec1..b635792520a508c6222b147ca3024c8f90632433 100644 --- a/templates/haproxy_cfg.jinja2 +++ b/templates/haproxy_cfg.jinja2 @@ -430,9 +430,9 @@ backend backend_varnish option forwardfor hash-type consistent {% if varnish_host == inventory_hostname %} - server varnish 127.0.0.1:6081 maxconn {{proxy_varnish_maxconn}} + server varnish 127.0.0.1:6081 check maxconn {{proxy_varnish_maxconn}} {% else %} - server varnish {{ varnish_host_ip|default('') }}:6081 maxconn {{proxy_varnish_maxconn}} + server varnish {{ varnish_host_ip|default('') }}:6081 check maxconn {{proxy_varnish_maxconn}} {% endif %} backend backend_varnish_bigpipe @@ -446,9 +446,9 @@ backend backend_varnish_bigpipe option forwardfor hash-type consistent {% if varnish_host == inventory_hostname %} - server varnish 127.0.0.1:6081 maxconn {{proxy_varnish_maxconn}} + server varnish 127.0.0.1:6081 check maxconn {{proxy_varnish_maxconn}} {% else %} - server varnish {{ varnish_host_ip|default('') }}:6081 maxconn {{proxy_varnish_maxconn}} + server varnish {{ varnish_host_ip|default('') }}:6081 check maxconn {{proxy_varnish_maxconn}} {% endif %} {% endif %}