Puppet Class: role::alerting_host

Defined in:
modules/role/manifests/alerting_host.pp

Overview

Class: role::alerting_host

Sets up a full production alerting host, including an icinga instance, tcpircbot, and certspotter

Parameters



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
# File 'modules/role/manifests/alerting_host.pp', line 8

class role::alerting_host {

    system::role{ 'alerting_host':
        description => 'central host for health checking and alerting'
    }

    include profile::base::production
    include profile::base::firewall

    include profile::icinga
    include profile::icinga::logmsgbot
    include profile::certspotter
    include profile::scap::dsh

    include profile::dns::auth::monitoring::global
    # backup checks directly to db to avoid spof
    include profile::mariadb::wmfmariadbpy
    include profile::dbbackups::check
    include profile::statograph

    # Temporary until all hosts are on Buster
    # https://phabricator.wikimedia.org/T247966
    if debian::codename::ge('buster') {
        include profile::alertmanager
        include profile::alertmanager::irc
        include profile::alertmanager::web
        include profile::alertmanager::ack
        include profile::alertmanager::api
        include profile::alertmanager::phab
        include profile::klaxon
    }

    class { 'httpd::mpm':
        mpm => 'prefork'
    }

    class { 'httpd':
        modules => ['headers', 'rewrite', 'authnz_ldap', 'authn_file', 'cgi',
                    'ssl', 'proxy_http', 'allowmethods'],
    }
}