diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-16 21:57:00 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-16 21:57:00 -0200 |
commit | 5880a633233f72808f563d9ee6181357c395f5ae (patch) | |
tree | 413caf563ae5bde598e24f927828b36fa61b623a | |
parent | 10df092f30ea46e5df492ffcbc0732d745a16e8f (diff) | |
download | puppet-mail-5880a633233f72808f563d9ee6181357c395f5ae.tar.gz puppet-mail-5880a633233f72808f563d9ee6181357c395f5ae.tar.bz2 |
Managing sympa logrotate config
-rw-r--r-- | files/sympa/logrotate | 16 | ||||
-rw-r--r-- | manifests/sympa.pp | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/files/sympa/logrotate b/files/sympa/logrotate new file mode 100644 index 0000000..a42a147 --- /dev/null +++ b/files/sympa/logrotate @@ -0,0 +1,16 @@ +# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496074 +# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477127 +/var/log/sympa.log { + rotate 7 + size=100k + compress + delaycompress + missingok + postrotate + /etc/init.d/sympa reload >/dev/null + #/etc/init.d/sysklogd reload >/dev/null + #/etc/init.d/rsyslog reload >/dev/null + #/etc/init.d/dsyslog reload >/dev/null + /etc/init.d/syslog-ng reload >/dev/null + endscript +} diff --git a/manifests/sympa.pp b/manifests/sympa.pp index a9c45d3..5dbe891 100644 --- a/manifests/sympa.pp +++ b/manifests/sympa.pp @@ -65,6 +65,14 @@ class mail::sympa inherits mail::regexps { notify => Service['apache', 'sympa'], } + file { "/etc/logrotate.d/sympa": + ensure => present, + owner => root, + group => root, + mode => 0644, + source => "puppet:///modules/mail/sympa/logrotate", + } + File["/etc/postfix/transport_regexp"] { content => template('mail/postfix/sympa/transport_regexp.erb'), } |