diff --git a/apache/manifests/init.pp b/apache/manifests/init.pp index 27c208a..f94b12d 100644 --- a/apache/manifests/init.pp +++ b/apache/manifests/init.pp @@ -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"], + } + } + +} +