summaryrefslogtreecommitdiff
path: root/manifests/expire.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-12-06 23:02:23 +0100
committermh <mh@immerda.ch>2009-12-06 23:02:23 +0100
commit0d1a1fdb690cd88496776f1571416e468a51ce71 (patch)
tree9aa1baa428492f67afcf4a02d018fc3d466f961e /manifests/expire.pp
parentc2b7e2af0438975e8b8b4c8d2532c383a8125e3f (diff)
initial release of the new dovecot module
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 }
+ }
+}