define varnish::config (
- $listen = ':6081',
+ $listen = [':6081'],
$source=undef,
$content=undef,
$ensure = 'present',
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
}