diff options
author | Micah Anderson <micah@riseup.net> | 2011-08-30 15:13:08 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-08-30 15:13:08 -0400 |
commit | 9ebb2fe7183953c97e90983e41fe3fb875d41e0d (patch) | |
tree | 9868576f3e15adb9c2ac94b2e5ef7eb298231327 | |
parent | 8ebe49c6d20bd2fd7d59303d193fe941742bb1e7 (diff) |
add debian-specific cron expire snippet
-rw-r--r-- | manifests/expire.pp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/expire.pp b/manifests/expire.pp index 9bc120a..f87318f 100644 --- a/manifests/expire.pp +++ b/manifests/expire.pp @@ -19,8 +19,18 @@ class dovecot::expire { content => "find ${dovecot_mail_location} -regex '.*/\\.\\(${dovecot_expire_dirs}\\)\\(/.*\\)?\\/\\(cur\\|new\\)/.*' -type f -ctime +${dovecot_expire_days} -delete\n" } } else { - File['/etc/cron.daily/dovecot-expire']{ - content => "dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool.sh\n" + case $operatingsystem { + debian: { + augeas { "expire_cron": + context => "/files/etc/default/dovecot/rule", + changes => [ 'set /files/etc/default/dovecot/EXPIRE_CRON \'"daily"\'' ], + } + } + default: { + File['/etc/cron.daily/dovecot-expire']{ + content => "dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool.sh\n" + } + } } } |