Puppet Class: role::netmon

Defined in:
modules/role/manifests/netmon.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
# File 'modules/role/manifests/netmon.pp', line 1

class role::netmon {
    system::role { 'netmon':
        description => 'Network monitoring and management'
    }
    # Basic boilerplate for network-related servers
    require ::role::network::monitor
    # needed by librenms and netbox web servers
    class { '::sslcert::dhparam': }
    include ::profile::atlasexporter
    include ::profile::backup::host
    include ::profile::librenms
    include ::profile::rancid
    include ::profile::smokeping

    if os_version('debian == stretch') {
        $php_module = 'php7.2'
    } else {
        $php_module = 'php7.3'
    }

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

    class { '::httpd':
        modules    => ['headers','rewrite','proxy','proxy_http','ssl','fcgid', $php_module],
        extra_pkgs => ['libapache2-mod-fcgid'],
    }
}