push empty /var/lib/varnish/.nobackup
authorMartin Zobel-Helas <zobel@debian.org>
Wed, 21 Feb 2018 21:05:21 +0000 (22:05 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Wed, 21 Feb 2018 21:05:21 +0000 (22:05 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/varnish/manifests/init.pp

index 4d10c66..7561869 100644 (file)
@@ -30,6 +30,12 @@ class varnish {
                notify =>  Service['varnish'],
                mode    => '0444',
         }
+       file { '/var/lib/varnish/.nobackup':
+               ensure  => present,
+               content => "",
+               require =>  Package['varnish'],
+               mode    => '0444',
+       }
 
         file { '/etc/logrotate.d/varnish':
                source => 'puppet:///modules/varnish/varnish.logrotate',