Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+/var/log/mail-all.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ compress
+}
+
+/var/log/syslog-all {
+ rotate 4
+ missingok
+ notifempty
+ weekly
+ compress
+}
+
+/var/log/auth-all.log {
+ rotate 4
+ missingok
+ notifempty
+ weekly
+ compress
+ postrotate
+ /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
+ endscript
+}
source => 'puppet:///modules/syslog-ng/syslog-ng.logrotate',
require => Package['syslog-ng']
}
+ if $::hostname in [lotty,lully] {
+ file { '/etc/logrotate.d/syslog-ng-loggers':
+ source => 'puppet:///modules/syslog-ng/syslog-ng.logrotate.loggers',
+ require => Package['syslog-ng']
+ }
+ }
}