Mercurial > repos > other > Puppet
view modules/apache/manifests/package.pp @ 442:2879e2d4148e
Configure test machine
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 03 Apr 2023 19:41:02 +0100 |
parents | b8d6ada284dd |
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'], } }