28
|
1 |
define apache::fastcgi::server ( |
|
2 |
$host = '127.0.0.1:9000', |
|
3 |
$timeout = 15, |
|
4 |
$flush = false, |
|
5 |
$faux_path = "/var/www/${name}.fcgi", |
|
6 |
$fcgi_alias = "/${name}.fcgi", |
|
7 |
$file_type = 'application/x-httpd-php' |
|
8 |
) { |
|
9 |
include apache::mod::fastcgi |
|
10 |
|
|
11 |
Apache::Mod['fastcgi'] -> Apache::Fastcgi::Server[$title] |
|
12 |
|
|
13 |
file { "fastcgi-pool-${name}.conf": |
|
14 |
ensure => present, |
|
15 |
path => "${::apache::confd_dir}/fastcgi-pool-${name}.conf", |
|
16 |
owner => 'root', |
|
17 |
group => $::apache::params::root_group, |
|
18 |
mode => '0644', |
|
19 |
content => template('apache/fastcgi/server.erb'), |
|
20 |
require => Exec["mkdir ${::apache::confd_dir}"], |
|
21 |
before => File[$::apache::confd_dir], |
|
22 |
notify => Class['apache::service'], |
|
23 |
} |
|
24 |
} |