diff options
Diffstat (limited to 'manifests/dovecot.pp')
-rw-r--r-- | manifests/dovecot.pp | 23 |
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'], + } +} |