Puppet Class: mailman::listserve

Defined in:
modules/mailman/manifests/listserve.pp

Overview



1
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
27
28
29
30
31
32
33
34
35
36
# File 'modules/mailman/manifests/listserve.pp', line 1

class mailman::listserve {
    package { 'mailman':
        ensure => present,
    }

    file { '/etc/mailman/mm_cfg.py':
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        source => 'puppet:///modules/mailman/mm_cfg.py',
    }

    debconf::set { 'mailman/site_languages':
        value  => 'sk, gl, fa, ast, ar, ca, cs, da, de, en, es, et, eu, fi, fr, he, hr, hu, ia, it, ja, ko, lt, nl, no, pl, pt, pt_BR, ro, ru, sl, sr, sv, tr, uk, vi, zh_CN, zh_TW',
        notify => Exec['dpkg-reconfigure mailman'],
    }

    debconf::set { 'mailman/default_server_language':
        value  => 'en',
        notify => Exec['dpkg-reconfigure mailman'],
    }

    exec { 'dpkg-reconfigure mailman':
        command     => '/usr/sbin/dpkg-reconfigure -fnoninteractive mailman',
        refreshonly => true,
        require     => Class['::profile::locales::extended'],
        before      => Service['mailman'],
    }

    service { 'mailman':
        ensure    => running,
        hasstatus => false,
        pattern   => 'mailmanctl',
        subscribe => File['/etc/mailman/mm_cfg.py'],
    }
}