do a restart
authorMartin Zobel-Helas <zobel@debian.org>
Fri, 25 Jan 2013 22:53:08 +0000 (23:53 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Fri, 25 Jan 2013 22:53:08 +0000 (23:53 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/varnish/manifests/init.pp

index b134c8e..f5202ce 100644 (file)
@@ -1,7 +1,7 @@
 class varnish {
 
         package { 'varnish':
-                ensure => installed
+                ensure => installed,
         }
 
         service { 'varnish':
@@ -16,12 +16,12 @@ class varnish {
 
         file { '/etc/default/varnish':
                source => 'puppet:///modules/varnish/files/varnish.default'
-                notify  => Service['varnish'],
+                notify  => Exec['varnish restart'],
         }
 
         file { '/etc/varnish/default.vcl':
                source => 'puppet:///modules/varnish/files/default.vcl'
-                notify  => Service['varnish'],
+                notify  => Exec['varnish restart'],
         }
 }