Puppet Class: apache::mod::fcgid
- Defined in:
 - manifests/mod/fcgid.pp
 
Summary
Installs and configures `mod_fcgid`.Overview
loaded first; Puppet will not automatically enable it if you set the fcgiwrapper parameter in apache::vhost.
include apache::mod::fcgid
apache::vhost { 'example.org':
  docroot     => '/var/www/html',
  directories => {
    path        => '/var/www/html',
    fcgiwrapper => {
      command => '/usr/local/bin/fcgiwrapper',
    }
  },
}
  
        38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65  | 
      
        # File 'manifests/mod/fcgid.pp', line 38
class apache::mod::fcgid(
  $options = {},
) {
  include ::apache
  if ($::osfamily == 'RedHat' and $::operatingsystemmajrelease == '7') or $::osfamily == 'FreeBSD' {
    $loadfile_name = 'unixd_fcgid.load'
    $conf_name = 'unixd_fcgid.conf'
  } else {
    $loadfile_name = undef
    $conf_name = 'fcgid.conf'
  }
  ::apache::mod { 'fcgid':
    loadfile_name => $loadfile_name,
  }
  # Template uses:
  # - $options
  file { $conf_name:
    ensure  => file,
    path    => "${::apache::mod_dir}/${conf_name}",
    mode    => $::apache::file_mode,
    content => template('apache/mod/fcgid.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}
       |