add pthon support to apache
This commit is contained in:
parent
35721a3f35
commit
8a56ee91f0
@ -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/'
|
||||
|
@ -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
24
manifests/python.pp
Normal 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, }
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user