Mercurial > repos > other > Puppet
comparison modules/apache/manifests/fastcgi/server.pp @ 257:675c1cc61eaf
Update Apache module to get CentOS 8 support
Unfortunately it only fixes some bits. mod_wsgi still needs
other approaches
This also overrides the vhost modification to make them come last
in the import order (after module loading)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Dec 2019 14:43:29 -0500 |
parents | 37675581a273 |
children | d9352a684e62 |
comparison
equal
deleted
inserted
replaced
252:47750947f4dc | 257:675c1cc61eaf |
---|---|
2 $host = '127.0.0.1:9000', | 2 $host = '127.0.0.1:9000', |
3 $timeout = 15, | 3 $timeout = 15, |
4 $flush = false, | 4 $flush = false, |
5 $faux_path = "/var/www/${name}.fcgi", | 5 $faux_path = "/var/www/${name}.fcgi", |
6 $fcgi_alias = "/${name}.fcgi", | 6 $fcgi_alias = "/${name}.fcgi", |
7 $file_type = 'application/x-httpd-php' | 7 $file_type = 'application/x-httpd-php', |
8 $pass_header = undef, | |
8 ) { | 9 ) { |
9 include apache::mod::fastcgi | 10 include ::apache::mod::fastcgi |
10 | 11 |
11 Apache::Mod['fastcgi'] -> Apache::Fastcgi::Server[$title] | 12 Apache::Mod['fastcgi'] -> Apache::Fastcgi::Server[$title] |
13 | |
14 if is_absolute_path($host) { | |
15 $socket = $host | |
16 } | |
12 | 17 |
13 file { "fastcgi-pool-${name}.conf": | 18 file { "fastcgi-pool-${name}.conf": |
14 ensure => present, | 19 ensure => present, |
15 path => "${::apache::confd_dir}/fastcgi-pool-${name}.conf", | 20 path => "${::apache::confd_dir}/fastcgi-pool-${name}.conf", |
16 owner => 'root', | 21 owner => 'root', |
17 group => $::apache::params::root_group, | 22 group => $::apache::params::root_group, |
18 mode => '0644', | 23 mode => $::apache::file_mode, |
19 content => template('apache/fastcgi/server.erb'), | 24 content => template('apache/fastcgi/server.erb'), |
20 require => Exec["mkdir ${::apache::confd_dir}"], | 25 require => Exec["mkdir ${::apache::confd_dir}"], |
21 before => File[$::apache::confd_dir], | 26 before => File[$::apache::confd_dir], |
22 notify => Class['apache::service'], | 27 notify => Class['apache::service'], |
23 } | 28 } |