Puppet Class: apache::mod::cgi

Defined in:
manifests/mod/cgi.pp

Summary

Installs `mod_cgi`.

Overview



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/mod/cgi.pp', line 6

class apache::mod::cgi {
  include ::apache
  case $::osfamily {
    '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 $::osfamily == 'Suse' {
    ::apache::mod { 'cgi':
      lib_path => '/usr/lib64/apache2-prefork',
    }
  } else {
    ::apache::mod { 'cgi': }
  }

}