]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/manifests/mod/fcgid.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / fcgid.pp
1 class apache::mod::fcgid(
2   $options = {},
3 ) {
4   if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '7' {
5     $loadfile_name = 'unixd_fcgid.load'
6   } else {
7     $loadfile_name = undef
8   }
9
10   ::apache::mod { 'fcgid':
11     loadfile_name => $loadfile_name
12   }
13
14   # Template uses:
15   # - $options
16   file { 'fcgid.conf':
17     ensure  => file,
18     path    => "${::apache::mod_dir}/fcgid.conf",
19     content => template('apache/mod/fcgid.conf.erb'),
20     require => Exec["mkdir ${::apache::mod_dir}"],
21     before  => File[$::apache::mod_dir],
22     notify  => Class['apache::service'],
23   }
24 }