Permalink
Browse files

Support a customized (per-host) logrotate file

  • Loading branch information...
1 parent 2e9f31e commit e1e04f04e81d3bbff32c625eb5f1ab213118d0e4 @albanpeignier albanpeignier committed Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 files/apache2.logrotate
  2. +1 −1 manifests/init.pp
View
@@ -1,7 +1,7 @@
/var/log/apache2/*.log {
daily
missingok
- rotate 1
+ rotate 3
compress
delaycompress
notifempty
View
@@ -27,7 +27,7 @@
# reduce apache2 log storage
file { "/etc/logrotate.d/apache2":
- source => "puppet:///apache2/apache2.logrotate",
+ source => ["puppet:///files/apache2/apache2.logrotate.${fqdn}", "puppet:///apache2/apache2.logrotate"],
require => Package[apache2]
}

0 comments on commit e1e04f0

Please sign in to comment.