Puppet Class: dovecot::userdb

Inherits:
dovecot::params
Defined in:
manifests/userdb.pp

Overview

userdb

driver = static
args = uid=2222 gid=2222 home=/var/vmail/%d/%n allow_all_users=yes

Parameters:

  • driver (Any) (defaults to: 'static')
  • uid (Any) (defaults to: $dovecot::params::postfix_username_uid_default)
  • gid (Any) (defaults to: $dovecot::params::postfix_username_gid_default)
  • home (Any) (defaults to: '/var/vmail/%d/%n')
  • allow_all_users (Any) (defaults to: true)


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/userdb.pp', line 5

class dovecot::userdb(
                        $driver          = 'static',
                        #static
                        $uid             = $dovecot::params::postfix_username_uid_default,
                        $gid             = $dovecot::params::postfix_username_gid_default,
                        $home            = '/var/vmail/%d/%n',
                        $allow_all_users = true,
                      ) inherits dovecot::params {

  concat::fragment{ '/etc/dovecot/dovecot.conf userdb':
    target  => '/etc/dovecot/dovecot.conf',
    order   => '20',
    content => template("${module_name}/userdb/${driver}.erb"),
  }
}