+++ /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/dacs/*log {
- daily
- dateext
- missingok
- rotate 28
- compress
- delaycompress
- create 640 www-data www-data
- su root www-data
- sharedscripts
-}
purge => true
}
file { '/etc/logrotate.d/dacs':
- source => 'puppet:///modules/dacs/common/dacs.logrotate',
+ content => template('dacs/dacs.logrotate.erb'),
owner => root,
group => root,
mode => '0644',
--- /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/dacs/*log {
+ daily
+ dateext
+ missingok
+ rotate 28
+ compress
+ delaycompress
+ create 640 www-data www-data
+<% if @lsbmajdistrelease >= '7' -%>
+ su root www-data
+<% else -%>
+ notifempty
+<% end -%>
+ sharedscripts
+}