summaryrefslogtreecommitdiff
path: root/manifests/dovecot.pp
blob: 4f9a226b980aefa0b86ea542c1545f6b50988cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'],
  }
}