From: Peter Palfrader Date: Fri, 3 Dec 2010 11:05:20 +0000 (+0100) Subject: Add a rsyncd-log module X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=de070dd505369c8bb0f0e3f2f13a6d9ee6d24e48;p=mirror%2Fdsa-puppet.git Add a rsyncd-log module --- diff --git a/modules/rsyncd-log/files/logrotate.d-dsa-rsyncd b/modules/rsyncd-log/files/logrotate.d-dsa-rsyncd new file mode 100644 index 000000000..f647313b1 --- /dev/null +++ b/modules/rsyncd-log/files/logrotate.d-dsa-rsyncd @@ -0,0 +1,14 @@ +## +## 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/rsyncd/*.log { + daily + missingok + rotate 56 + compress + delaycompress + notifempty + create 640 root archvsync +} diff --git a/modules/rsyncd-log/manifests/init.pp b/modules/rsyncd-log/manifests/init.pp new file mode 100644 index 000000000..ae461d866 --- /dev/null +++ b/modules/rsyncd-log/manifests/init.pp @@ -0,0 +1,18 @@ +class rsyncd-log { + package { "logrotate": ensure => installed; } + + file { + "/etc/logrotate.d/dsa-rsyncd": + source => "puppet:///modules/rsyncd-log/logrotate.d-dsa-rsyncd", + ; + "/var/log/rsyncd": + ensure => directory, + owner => root, + group => root, + mode => 755, + ; + } +} +# vim:set et: +# vim:set sts=4 ts=4: +# vim:set shiftwidth=4: