dev/provisioning/modules/apache/manifests/mod/fastcgi.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 class apache::mod::fastcgi {
       
     2 
       
     3   # Debian specifies it's fastcgi lib path, but RedHat uses the default value
       
     4   # with no config file
       
     5   $fastcgi_lib_path = $::apache::params::fastcgi_lib_path
       
     6 
       
     7   ::apache::mod { 'fastcgi': }
       
     8 
       
     9   if $fastcgi_lib_path {
       
    10     # Template uses:
       
    11     # - $fastcgi_server
       
    12     # - $fastcgi_socket
       
    13     # - $fastcgi_dir
       
    14     file { 'fastcgi.conf':
       
    15       ensure  => file,
       
    16       path    => "${::apache::mod_dir}/fastcgi.conf",
       
    17       content => template('apache/mod/fastcgi.conf.erb'),
       
    18       require => Exec["mkdir ${::apache::mod_dir}"],
       
    19       before  => File[$::apache::mod_dir],
       
    20       notify  => Class['apache::service'],
       
    21     }
       
    22   }
       
    23 
       
    24 }