Index: modules/nginx/manifests/init.pp |
=================================================================== |
--- a/modules/nginx/manifests/init.pp |
+++ b/modules/nginx/manifests/init.pp |
@@ -40,20 +40,20 @@ class nginx ( |
ensure => link, |
require => File["/etc/nginx/sites-available/${file}"], |
target => "/etc/nginx/sites-available/${file}", |
notify => Service['nginx'] |
} |
} |
} |
-# file {'/etc/logrotate.d/nginx': |
-# source => 'nginx/logrotate', |
-# require => File['/etc/nginx/nginx.conf'] |
-# } |
+ file {'/etc/logrotate.d/nginx': |
+ source => 'puppet:///modules/nginx/logrotate', |
+ require => File['/etc/nginx/nginx.conf'] |
Felix Dahlke
2013/02/07 15:38:41
Why require the file here? Either the package, if
|
+ } |
service {'nginx': |
ensure => running, |
enable => true, |
restart => '/etc/init.d/nginx reload', |
hasstatus => true, |
require => File['/etc/nginx/nginx.conf'] |
} |