summaryrefslogtreecommitdiff
path: root/manifests/dovecot.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-04 22:43:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-04 22:43:58 -0300
commitdad5888cea24eb71cb58d0a260a208ba6e2d8073 (patch)
treef84b5e77b78a39b85a141a9e00c0622689d7ca27 /manifests/dovecot.pp
downloadpuppet-mail-dad5888cea24eb71cb58d0a260a208ba6e2d8073.tar.gz
puppet-mail-dad5888cea24eb71cb58d0a260a208ba6e2d8073.tar.bz2
Initial import
Diffstat (limited to 'manifests/dovecot.pp')
-rw-r--r--manifests/dovecot.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/dovecot.pp b/manifests/dovecot.pp
new file mode 100644
index 0000000..4f9a226
--- /dev/null
+++ b/manifests/dovecot.pp
@@ -0,0 +1,23 @@
+class mail::dovecot {
+ # Dovecot
+ service { "dovecot":
+ ensure => running,
+ require => [ Package['dovecot-imapd'], File['/etc/dovecot/dovecot.conf', '/etc/dovecot/dovecot-sql.conf'] ],
+ }
+
+ file { "/etc/dovecot/dovecot.conf":
+ ensure => present,
+ owner => root,
+ mode => 0644,
+ source => "puppet://$server/modules/mail/dovecot/dovecot.conf",
+ notify => Service['dovecot'],
+ }
+
+ file { "/etc/dovecot/dovecot-sql.conf":
+ ensure => present,
+ owner => root,
+ mode => 0600,
+ source => "puppet://$server/modules/mail/dovecot/dovecot-sql.conf",
+ notify => Service['dovecot'],
+ }
+}