Commit dde8f76d authored by Jürgen Haas's avatar Jürgen Haas

ansible-inventories/arocom#2898 Prepare Varnish health check in HaProxy

parent d2527732
......@@ -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 %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment