summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apache/manifests/common.pp
blob: 8a11759a2d64b5627c31a301ecd3191506e1a264 (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
27
28
29
30
# 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,
    ssl_cipher_suite => 'HIGH:MEDIUM:!aNULL:!MD5'
  }

  # needed for the mod_ssl config
  include apache::module::mime

  # load mods depending on apache version
  if ( $::lsbdistcodename == 'jessie' ) {
    # 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
}