]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/manifests/mod/cgid.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / cgid.pp
1 class apache::mod::cgid {
2   case $::osfamily {
3     'FreeBSD': {}
4     default: {
5       Class['::apache::mod::worker'] -> Class['::apache::mod::cgid']
6     }
7   }
8
9   # Debian specifies it's cgid sock path, but RedHat uses the default value
10   # with no config file
11   $cgisock_path = $::osfamily ? {
12     'debian'  => "\${APACHE_RUN_DIR}/cgisock",
13     'freebsd' => 'cgisock',
14     default   => undef,
15   }
16   ::apache::mod { 'cgid': }
17   if $cgisock_path {
18     # Template uses $cgisock_path
19     file { 'cgid.conf':
20       ensure  => file,
21       path    => "${::apache::mod_dir}/cgid.conf",
22       content => template('apache/mod/cgid.conf.erb'),
23       require => Exec["mkdir ${::apache::mod_dir}"],
24       before  => File[$::apache::mod_dir],
25       notify  => Class['apache::service'],
26     }
27   }
28 }