1 define varnish::config (
6 $backend = "-s malloc,256m",
8 if $name != "default" {
9 fail ( "This module cannot setup non-default varnish instances yet." )
16 if ! ($source or $content) {
17 fail ( "No configuration found for ${name}" )
20 systemd::override { 'varnish':
24 ExecStart=/usr/sbin/varnishd -a ${listen} -T localhost:6082 -f /etc/varnish/${name}.vcl -S /etc/varnish/secret -s ${backend}
28 $dest = "/etc/varnish/${name}.vcl"
33 notify => Service["varnish"],
39 notify => Service["varnish"],
44 fail ( "Can only deal with ensure=>present for now" )