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 => Package['nginx'] |
+ } |
service {'nginx': |
ensure => running, |
enable => true, |
restart => '/etc/init.d/nginx reload', |
hasstatus => true, |
require => File['/etc/nginx/nginx.conf'] |
} |