apache: Fix fcgid on CentOS, dependency fix for wsgi
Create separate mod_fcgid socket dirs for http and httpsd. Also tune the process limits.
This commit is contained in:
parent
1fbaaacc65
commit
fc12e7e03e
4 changed files with 52 additions and 6 deletions
|
@ -468,8 +468,31 @@ class apache::mod::fcgid {
|
|||
}
|
||||
}
|
||||
"centos","redhat","fedora": {
|
||||
apache::configfile { "fcgid.conf":
|
||||
require => Package["mod_fcgid"],
|
||||
if defined(Class["apache::server"]) {
|
||||
file { "/var/run/mod_fcgid":
|
||||
ensure => directory,
|
||||
mode => "0755",
|
||||
owner => $apache::server::user,
|
||||
group => $apache::server::group,
|
||||
before => Service["httpd"],
|
||||
}
|
||||
apache::configfile { "fcgid_http.conf":
|
||||
source => "puppet:///modules/apache/fcgid_http.conf",
|
||||
https => false,
|
||||
}
|
||||
}
|
||||
if defined(Class["apache::sslserver"]) {
|
||||
file { "/var/run/mod_fcgid_httpsd":
|
||||
ensure => directory,
|
||||
mode => "0755",
|
||||
owner => $apache::sslserver::user,
|
||||
group => $apache::sslserver::group,
|
||||
before => Service["httpsd"],
|
||||
}
|
||||
apache::configfile { "fcgid_https.conf":
|
||||
source => "puppet:///modules/apache/fcgid_https.conf",
|
||||
http => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
default: {
|
||||
|
@ -748,15 +771,16 @@ class apache::mod::wsgi {
|
|||
}
|
||||
}
|
||||
"centos","redhat","fedora": {
|
||||
apache::configfile { "wsgi.conf":
|
||||
source => "puppet:///modules/apache/mod_wsgi.conf",
|
||||
require => Package["mod_wsgi"],
|
||||
}
|
||||
file { "/var/run/mod_wsgi":
|
||||
ensure => directory,
|
||||
mode => "0755",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
before => Apache::Configfile["wsgi.conf"],
|
||||
}
|
||||
apache::configfile { "wsgi.conf":
|
||||
source => "puppet:///modules/apache/wsgi.conf",
|
||||
require => Package["mod_wsgi"],
|
||||
}
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue