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.

Parameters:



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
# 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,
    String $service_ensure = 'running',
    Optional[String] $memcached = undef,
) {

    # 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,
    }

    class { '::mailman3::web':
        host           => $host,
        service_ensure => $service_ensure,
        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,
        memcached      => $memcached,
    }
}