blob: 6d63f5e13fcc441a389dd9f1cd660dbd53c30e6b (
plain)
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
|
# install basic apache modules needed for all services (nagios, webapp)
class site_apache::common {
include apache::module::rewrite
include apache::module::env
class { '::apache': no_default_site => true, ssl => true }
# needed for the mod_ssl config
include apache::module::mime
# load mods depending on apache version
if ( versioncmp($::apache_version, '2.4') >= 0 ) {
# apache >= 2.4, debian jessie
# needed for mod_ssl config
include apache::module::socache_shmcb
# generally needed
include apache::module::mpm_prefork
} else {
# apache < 2.4, debian wheezy
# for "Order" directive, i.e. main apache2.conf
include apache::module::authz_host
}
include site_apache::common::tls
}
|