Initial version of apache::mod::python.
This commit is contained in:
parent
d6f68680e5
commit
d5e44df47e
1 changed files with 30 additions and 0 deletions
|
@ -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"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue