]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Managing sympa logrotate config
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Feb 2011 23:57:00 +0000 (21:57 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 16 Feb 2011 23:57:00 +0000 (21:57 -0200)
files/sympa/logrotate [new file with mode: 0644]
manifests/sympa.pp

diff --git a/files/sympa/logrotate b/files/sympa/logrotate
new file mode 100644 (file)
index 0000000..a42a147
--- /dev/null
@@ -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
+}
index a9c45d3b92d2ce0cf890b9a8204e636e091ff63d..5dbe8912773459ffe1545d379862ab7ece1c4b42 100644 (file)
@@ -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'),
   }