puppet-httpd/manifests/mod/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

29 lines
499 B
Puppet

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