Skip to content
Snippets Groups Projects
Commit dde8f76d authored by jurgenhaas's avatar jurgenhaas
Browse files

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

parent d2527732
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment