Merge branch 'master' of ssh://pwan.org/var/www/git/projects/hgr
[hgr.git] / manifests / dovecot.pp
1 class hgr::dovecot {
2
3 package {
4 "dovecot-imapd":
5 ensure => installed;
6 }
7
8 file {
9 "/etc/dovecot/conf.d/10-mail.conf":
10 ensure => present,
11 source => "puppet:///modules/hgr/dovecot/10-mail.conf",
12 owner => "root",
13 group => "root",
14 mode => "0644",
15 notify => Service["dovecot"],
16 require => [Package["dovecot-imapd"]];
17 "/etc/dovecot/conf.d/10-master.conf":
18 ensure => present,
19 source => "puppet:///modules/hgr/dovecot/10-master.conf",
20 owner => "root",
21 group => "root",
22 mode => "0644",
23 notify => Service["dovecot"],
24 require => [Package["dovecot-imapd"]];
25 "/etc/dovecot/conf.d/10-auth.conf":
26 ensure => present,
27 source => "puppet:///modules/hgr/dovecot/10-auth.conf",
28 owner => "root",
29 group => "root",
30 mode => "0644",
31 notify => Service["dovecot"],
32 require => [Package["dovecot-imapd"]];
33 }
34
35 service {
36 "dovecot":
37 ensure => running,
38 enable => true,
39 require => Package["dovecot-imapd"];
40 }
41
42 }