diff options
Diffstat (limited to 'manifests/dovecot.pp')
-rw-r--r-- | manifests/dovecot.pp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/manifests/dovecot.pp b/manifests/dovecot.pp index d76ae79..f0ab0dd 100644 --- a/manifests/dovecot.pp +++ b/manifests/dovecot.pp @@ -1,9 +1,17 @@ class mail::dovecot { + group { 'dovecot': + ensure => present, + } + + user { 'dovecot': + ensure => present, + gid => 'dovecot', + require => Group['dovecot'], + } - # Dovecot service { "dovecot": ensure => running, - require => [ Package['dovecot-imapd'], File['/etc/dovecot/dovecot.conf', '/etc/dovecot/dovecot-sql.conf'] ], + require => [ Package['dovecot-imapd'], File['/etc/dovecot/dovecot.conf', '/etc/dovecot/dovecot-sql.conf'], User['dovecot'], ], } file { "/etc/dovecot/dovecot.conf": |