Mercurial > repos > other > Puppet
view modules/apache/manifests/mod/cgi.pp @ 478:adf6fe9bbc17
Update Puppet modules to latest versions
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 29 Aug 2024 18:47:29 +0100 |
parents | b8d6ada284dd |
children |
line wrap: on
line source
# @summary # Installs `mod_cgi`. # # @see https://httpd.apache.org/docs/current/mod/mod_cgi.html for additional documentation. # class apache::mod::cgi { include apache case $facts['os']['family'] { 'FreeBSD': {} default: { if defined(Class['apache::mod::itk']) { Class['apache::mod::itk'] -> Class['apache::mod::cgi'] } elsif defined(Class['apache::mod::peruser']) { Class['apache::mod::peruser'] -> Class['apache::mod::cgi'] } else { Class['apache::mod::prefork'] -> Class['apache::mod::cgi'] } } } if $facts['os']['family'] == 'Suse' { ::apache::mod { 'cgi': lib_path => '/usr/lib64/apache2-prefork', } } else { ::apache::mod { 'cgi': } } }