Mercurial > repos > other > Puppet
comparison modules/apache/manifests/fastcgi/server.pp @ 36:37675581a273 puppet-3.6
Update Puppet module for Apache (pulls in concat module)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 Mar 2015 20:07:04 +0000 |
parents | |
children | 675c1cc61eaf |
comparison
equal
deleted
inserted
replaced
35:1bb941522ebf | 36:37675581a273 |
---|---|
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 } |