add pthon support to apache

This commit is contained in:
Zach 2010-11-21 16:34:48 -05:00
parent 35721a3f35
commit 8a56ee91f0
3 changed files with 30 additions and 5 deletions

View File

@ -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/'

View File

@ -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,
# }
}

24
manifests/python.pp Normal file
View File

@ -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, }
}