Added fix for mod_wsgi socket path on CentOS/RedHat/Fedora

This commit is contained in:
Ossi Salmi 2013-01-24 13:00:20 +02:00
parent 5924caabe1
commit 3a40b11a62
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,2 @@
LoadModule wsgi_module modules/mod_wsgi.so
WSGISocketPrefix /var/run/mod_wsgi/wsgi

View file

@ -674,8 +674,15 @@ 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",
}
}
default: {
fail("Apache module not supported in ${::operatingsystem}.")