summaryrefslogtreecommitdiff
path: root/manifests/expire.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/expire.pp')
-rw-r--r--manifests/expire.pp26
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/expire.pp b/manifests/expire.pp
new file mode 100644
index 0000000..8cdf17f
--- /dev/null
+++ b/manifests/expire.pp
@@ -0,0 +1,26 @@
+class dovecot::expire {
+ include ::dovecot
+ file{'/etc/dovecot-expire.conf':
+ source => [ "puppet://$server/modules/site-dovecot/expire/${fqdn}/dovecot-expire.conf",
+ "puppet://$server/modules/site-dovecot/expire/dovecot-expire.conf",
+ "puppet://$server/modules/site/expire/${operatingsystem}/dovecot-expire.conf",
+ "puppet://$server/modules/site/expire/dovecot-expire.conf" ],
+ require => Package['dovecot'],
+ notify => Service['dovecot'],
+ owner => root, group => 0, mode => 0600;
+ }
+
+ file{'/etc/cron.daily/dovecot-expire':
+ content => "dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool.sh\n",
+ owner => root, group => 0, mode => 0755;
+ }
+
+ file{'/usr/libexec/dovecot/expire-tool.sh':
+ source => "puppet://$server/modules/site/expire/expire-tool.sh",
+ owner => root, group => 0, mode => 0700;
+ }
+
+ case $dovecot_expire_type {
+ default: { include ::dovecot::expire::sqlite }
+ }
+}