Index: modules/trac/manifests/init.pp |
diff --git a/modules/trac/manifests/init.pp b/modules/trac/manifests/init.pp |
index 3697f8a2094c7f2645865ab0ac21d43441d31131..c6c04b5e91cfb0aa2ded9f893cb698f3c644250f 100644 |
--- a/modules/trac/manifests/init.pp |
+++ b/modules/trac/manifests/init.pp |
@@ -241,6 +241,20 @@ class trac( |
children => 1, |
require => Exec["deploy_$name"], |
} |
+ |
+ logrotate::config {"trac_$name": |
+ content => template('trac/logrotate.erb'), |
+ ensure => 'present', |
+ } |
+ } |
+ |
+ # Daily restart required for log rotation of all instances at once |
+ cron {'restart-trac-daily': |
+ command => 'service spawn-fcgi restart >/tmp/spawn-fcgi-restart.log', |
+ environment => hiera('cron::environment', []), |
+ hour => '1', |
+ minute => '0', |
+ user => 'root', |
} |
} |