From 8a56ee91f077a95023c395b66c4e04f49dca8af1 Mon Sep 17 00:00:00 2001
From: Zach <zach@puppetlabs.com>
Date: Sun, 21 Nov 2010 16:34:48 -0500
Subject: [PATCH] add pthon support to apache

---
 manifests/params.pp |  1 +
 manifests/php.pp    | 10 +++++-----
 manifests/python.pp | 24 ++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 5 deletions(-)
 create mode 100644 manifests/python.pp

diff --git a/manifests/params.pp b/manifests/params.pp
index 46d1bc2..9764001 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -32,6 +32,7 @@ class apache::params {
     'ubuntu', 'debian': {
        $apache_name = 'apache2'
        $php_package = 'libapache2-mod-php5'
+       $python_package = 'libapache2-mod-python'
        $ssl_package = 'apache-ssl'
        $apache_dev  = [ 'libaprutil1-dev', 'libapr1-dev', 'apache2-prefork-dev' ]
        $vdir = '/etc/apache2/sites-enabled/'
diff --git a/manifests/php.pp b/manifests/php.pp
index 932eaee..3842811 100644
--- a/manifests/php.pp
+++ b/manifests/php.pp
@@ -13,10 +13,10 @@
 # Sample Usage:
 #
 class apache::php {
+	include php
+#  include apache::params
 
-  include apache::params
-
-  package { $apache::params::php_package:
-    ensure => present,
-  }
+#  package { $apache::params::php_package:
+#    ensure => present,
+#  }
 }
diff --git a/manifests/python.pp b/manifests/python.pp
new file mode 100644
index 0000000..3bdeacb
--- /dev/null
+++ b/manifests/python.pp
@@ -0,0 +1,24 @@
+# Class: apache::python
+#
+# This class installs Python for Apache
+#
+# Parameters:
+# - $php_package
+#
+# Actions:
+#   - Install Apache Python package
+#
+# Requires:
+#
+# Sample Usage:
+#
+class apache::python {
+	include apache::params
+	include apache
+
+  package { $apache::params::python_package:
+    ensure => present,
+  }
+	a2mod { "python": ensure => present, }
+
+}