summaryrefslogtreecommitdiff
path: root/manifests/logrotate.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-12-21 23:07:02 +0100
committermh <mh@immerda.ch>2009-12-21 23:07:02 +0100
commit1b1b841c46a36991a3cdcad49c3e076ed376dd7a (patch)
tree70805eb82c426afc5f6dc71239ed0d1deee9cd05 /manifests/logrotate.pp
parentea88b2d0597527467a0013de3c1c173d5e4d136f (diff)
manage logrotate as well
Diffstat (limited to 'manifests/logrotate.pp')
-rw-r--r--manifests/logrotate.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/logrotate.pp b/manifests/logrotate.pp
new file mode 100644
index 0000000..47fe42e
--- /dev/null
+++ b/manifests/logrotate.pp
@@ -0,0 +1,11 @@
+class dovecot::logrotate {
+ include logrotate
+ augeas {
+ "logrotate_dovecot":
+ context => "/files/etc/logrotate.d/dovecot/rule",
+ changes => [ 'set file /var/log/dovecot/log/*.log', 'set rotate 3', 'set schedule weekly',
+ 'set compress compress', 'set sharedscripts sharedscripts',
+ 'set create/mode 0664', 'set create/owner root', 'set create/group mail',
+ 'set postrotate "/bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2> /dev/null || true"' ],
+ }
+}