Puppet Class: dovecot::lmtp::config

Defined in:
manifests/lmtp/config.pp

Overview



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/lmtp/config.pp', line 2

class dovecot::lmtp::config {
  dovecot::config::dovecotcfhash {'lmtp':
    config_file => 'conf.d/20-lmtp.conf',
    options     => merge( $dovecot::lmtp::options, prefix($dovecot::lmtp::protocol_options, "protocol[. = \"lmtp\"]/") ),
  }

  dovecot::master::service {'lmtp':
    ensure  => 'present',
    options     => $dovecot::lmtp::service_options,
  }

  # Configure inet_listeners included in $inet_listeners
  $dovecot::lmtp::inet_listeners.each |String $k, Hash $opt| {
    dovecot::lmtp::inet_listener {$k:
      * => $opt,
    }
  }

  # Configure unix_listeners included in $unix_listeners
  $dovecot::lmtp::unix_listeners.each |String $k, Hash $opt| {
    dovecot::lmtp::unix_listener {$k:
      * => $opt,
    }
  }
}