Initial version of apache::mod::python.

This commit is contained in:
Ossi Salmi 2009-11-25 18:19:33 +02:00 committed by Timo Mkinen
parent d6f68680e5
commit d5e44df47e

View file

@ -310,3 +310,33 @@ define apache::sslsite($site_root="none", $site_conf="none",
}
# Install mod_python.
#
class apache::mod::python {
package { "mod_python":
ensure => installed,
require => Package["httpd"],
}
if defined(Service["httpd"]) {
file { "/etc/httpd/conf.http.d/python.conf":
ensure => link,
target => "/etc/httpd/conf.d/python.conf",
require => Package["mod_python"],
notify => Service["httpd"],
}
}
if defined(Service["httpsd"]) {
file { "/etc/httpd/conf.https.d/python.conf":
ensure => link,
target => "/etc/httpd/conf.d/python.conf",
require => Package["mod_python"],
notify => Service["httpsd"],
}
}
}