Puppet Class: mailman3
- Defined in:
- modules/mailman3/manifests/init.pp
Overview
SPDX-License-Identifier: Apache-2.0
Class mailman3
Provisions all the mailman3 software needed to run mailing lists on a single host.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'modules/mailman3/manifests/init.pp', line 6
class mailman3 (
Stdlib::Fqdn $host,
Stdlib::Fqdn $db_host,
String $db_name,
String $db_user,
String $db_password,
String $webdb_name,
String $webdb_user,
String $webdb_password,
String $api_password,
String $web_secret,
String $archiver_key,
Integer $uwsgi_processes,
Wmflib::Ensure $service_ensure = 'present',
Optional[String] $memcached = undef,
Boolean $allow_incoming_mail = true,
Stdlib::Unixpath $mailman_root = '/var/lib/mailman3',
) {
# We do not want to use the dbconfig system
# that tries to apply database updates on
# package install.
package { 'dbconfig-no-thanks':
ensure => present,
}
package { 'dbconfig-mysql':
ensure => absent,
}
class { 'mailman3::listserve':
host => $host,
service_ensure => $service_ensure,
db_host => $db_host,
db_name => $db_name,
db_user => $db_user,
db_password => $db_password,
api_password => $api_password,
allow_incoming_mail => $allow_incoming_mail,
mailman_root => $mailman_root,
}
class { 'mailman3::web':
host => $host,
service_ensure => stdlib::ensure($service_ensure, 'service'),
db_host => $db_host,
db_name => $webdb_name,
db_user => $webdb_user,
db_password => $webdb_password,
api_password => $api_password,
secret => $web_secret,
archiver_key => $archiver_key,
uwsgi_processes => $uwsgi_processes,
memcached => $memcached,
mailman_root => $mailman_root,
}
}
|