From b56ddffb764246bad65b6358575c72468d7e3891 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 28 May 2018 10:53:11 +0200 Subject: [PATCH] varnish on stretch now takes several -a arguments instead of one with multiple addresses --- modules/varnish/manifests/config.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/varnish/manifests/config.pp b/modules/varnish/manifests/config.pp index a46f799a0..3e5c5220e 100644 --- a/modules/varnish/manifests/config.pp +++ b/modules/varnish/manifests/config.pp @@ -1,5 +1,5 @@ define varnish::config ( - $listen = ':6081', + $listen = [':6081'], $source=undef, $content=undef, $ensure = 'present', @@ -17,11 +17,13 @@ define varnish::config ( fail ( "No configuration found for ${name}" ) } + $listenarr = [] + $listen + $listenstr = join(prefix($listenarr, "-a "), " ") systemd::override { 'varnish': content => @("EOF"), [Service] ExecStart= - ExecStart=/usr/sbin/varnishd -a ${listen} -T localhost:6082 -f /etc/varnish/${name}.vcl -S /etc/varnish/secret -s ${backend} + ExecStart=/usr/sbin/varnishd ${listenstr} -T localhost:6082 -f /etc/varnish/${name}.vcl -S /etc/varnish/secret -s ${backend} | EOF } -- 2.20.1