not my day II
authorMartin Zobel-Helas <zobel@debian.org>
Fri, 25 Jan 2013 23:12:23 +0000 (00:12 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Fri, 25 Jan 2013 23:12:23 +0000 (00:12 +0100)
modules/varnish/files/default.vcl
modules/varnish/files/varnish.default
modules/varnish/manifests/init.pp

index cb946cf..66ff13a 100644 (file)
@@ -1,3 +1,8 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
 backend holter {
         # holter.debian.org
         .host = "194.177.211.202";
index 16eb392..4f4244f 100644 (file)
@@ -1,3 +1,9 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+
 # Configuration file for varnish
 #
 # /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
index 7ce53d2..d7da796 100644 (file)
@@ -15,13 +15,17 @@ class varnish {
         }
 
         file { '/etc/default/varnish':
-               source => 'puppet:///modules/varnish/files/varnish.default',
-                notify =>  Service['varnish'],
+               source  => 'puppet:///modules/varnish/varnish.default',
+               require =>  Package['varnish'],
+                notify  =>  Service['varnish'],
+               mode    => '0444',
         }
 
         file { '/etc/varnish/default.vcl':
-               source => 'puppet:///modules/varnish/files/default.vcl',
-                notify =>  Service['varnish'],
+               source => 'puppet:///modules/varnish/default.vcl',
+               require =>  Package['varnish'],
+               notify =>  Service['varnish'],
+               mode    => '0444',
         }
 }