From e680b96895dfbc30f91459627507abaf959db0f0 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Sun, 8 Oct 2017 22:18:37 +0000 Subject: [PATCH] On proxies, varnish is on port 6081 Signed-off-by: Patrick Uiterwijk --- roles/varnish/templates/varnish.f25.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/varnish/templates/varnish.f25.j2 b/roles/varnish/templates/varnish.f25.j2 index 104b28d245..622cbeb600 100644 --- a/roles/varnish/templates/varnish.f25.j2 +++ b/roles/varnish/templates/varnish.f25.j2 @@ -11,7 +11,11 @@ VARNISH_VCL_CONF=/etc/varnish/default.vcl # and IPv6 interfaces, otherwise specify a host name, an IPv4 dotted # quad, or an IPv6 address in brackets. # VARNISH_LISTEN_ADDRESS=192.168.1.5 +{% if "proxy" in inventory_hostname %} +VARNISH_LISTEN_PORT=6081 +{% else %} VARNISH_LISTEN_PORT=80 +{% endif %} # Admin interface listen address and port VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1