puppet-httpd/manifests/python.pp
Bruno Tavares edb7660f9b Add note of support on Python mods for CentOS 7.
CentOS 7 has offically deprecated mod_python in favor of mod_wsgi and
the package is not available anymore. This change add a note on the
module about the offically supported way to run python applications on
CentOS 7.

Change-Id: I9bf2e0dde6575f50db6ce12abf896b5890b42419
Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
2015-09-28 14:50:03 -03:00

27 lines
500 B
Puppet

# Class: httpd::python
#
# This class installs Python for Apache
# Please use httpd::mod::wsgi for CentOS >= 7 as mod_python is officially deprecated.
#
# Parameters:
# - $python_package
#
# Actions:
# - Install Apache Python package
#
# Requires:
#
# Sample Usage:
#
class httpd::python {
include ::httpd::params
include ::httpd
package { 'apache_python_package':
ensure => present,
name => $httpd::params::mod_python_package,
}
httpd::mod { 'python': ensure => present, }
}