diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-04-14 19:32:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-04-14 19:32:14 -0300 |
commit | 516ed2041f3ff0d893ed116b11179e4c7ae2ad09 (patch) | |
tree | 05a9b373045887cf3ffa65fd079e8e53e82268e6 /manifests/dovecot.pp | |
parent | 5eb3dca39ea4c01eb38a8c6f329e6d5e9c845732 (diff) | |
download | puppet-mail-516ed2041f3ff0d893ed116b11179e4c7ae2ad09.tar.gz puppet-mail-516ed2041f3ff0d893ed116b11179e4c7ae2ad09.tar.bz2 |
Fix debian bug 903161
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": |