From d5e44df47e3e0048911c4d563eea62f4c2946602 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 25 Nov 2009 18:19:33 +0200 Subject: [PATCH] Initial version of apache::mod::python. --- apache/manifests/init.pp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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"], + } + } + +} +