1 class apache::package (
3 $mpm_module = $::apache::params::mpm_module,
4 ) inherits ::apache::params {
6 # The base class must be included first because it is used by parameter defaults
7 if ! defined(Class['apache']) {
8 fail('You must include the apache base class before using any apache defined resources')
16 $unset = 'MPM_WORKER MPM_EVENT'
20 $unset = 'MPM_PERFORK MPM_EVENT'
24 $unset = 'MPM_PERFORK MPM_WORKER'
29 package { 'www/mod_mpm_itk':
33 default: { fail("MPM module ${mpm_module} not supported on FreeBSD") }
36 # Configure ports to have apache build options set correctly
38 file_line { 'apache SET options in /etc/make.conf':
40 path => '/etc/make.conf',
41 line => "apache24_SET_FORCE=${set}",
42 match => '^apache24_SET_FORCE=.*',
43 before => Package['httpd'],
45 file_line { 'apache UNSET options in /etc/make.conf':
47 path => '/etc/make.conf',
48 line => "apache24_UNSET_FORCE=${unset}",
49 match => '^apache24_UNSET_FORCE=.*',
50 before => Package['httpd'],
53 $apache_package = $::apache::apache_name
56 $apache_package = $::apache::apache_name
62 name => $apache_package,
63 notify => Class['Apache::Service'],