Mercurial > repos > other > Puppet
view modules/apache/manifests/package.pp @ 437:b8d6ada284dd
Update Apache module to latest version
Also converted some params to ints to match
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 14 Aug 2022 11:30:13 +0100 |
parents | d9352a684e62 |
children |
line wrap: on
line source
# @summary # Installs an Apache MPM. # # @api private class apache::package ( String $ensure = 'present', String $mpm_module = $apache::params::mpm_module, ) inherits apache::params { # The base class must be included first because it is used by parameter defaults if ! defined(Class['apache']) { fail('You must include the apache base class before using any apache defined resources') } case $facts['os']['family'] { 'FreeBSD': { case $mpm_module { 'prefork': { } 'worker': { } 'event': { } 'itk': { package { 'www/mod_mpm_itk': ensure => installed, } } default: { fail("MPM module ${mpm_module} not supported on FreeBSD") } } } default: { } } package { 'httpd': ensure => $ensure, name => $apache::apache_name, notify => Class['Apache::Service'], } }