Puppet Class: profile::netmon::httpd

Defined in:
modules/profile/manifests/netmon/httpd.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/netmon/httpd.pp', line 1

class profile::netmon::httpd (
){
    $php_version = debian::codename() ? {
        'buster'   => 'php7.3',
        'bullseye' => 'php7.4',
        default    => 'php7.3',
    }
    # needed by librenms and netbox web servers
    class { '::sslcert::dhparam': }

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

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

    profile::auto_restarts::service { 'apache2': }
}