2015-01-28 19:51:43 -08:00
|
|
|
# Class: httpd::mod::python
|
2014-11-20 10:56:33 +11:00
|
|
|
#
|
|
|
|
# This class installs Python for Apache
|
2015-09-16 11:06:33 -03:00
|
|
|
# Please use httpd::mod::wsgi for CentOS >= 7 as mod_python is officially deprecated.
|
2014-11-20 10:56:33 +11:00
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
# - Install Apache Python package
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
2015-01-28 19:51:43 -08:00
|
|
|
class httpd::mod::python {
|
2020-03-05 09:14:07 -08:00
|
|
|
include httpd
|
2011-07-15 15:27:14 -07:00
|
|
|
|
2012-04-05 17:04:55 -04:00
|
|
|
package { 'mod_python_package':
|
2011-07-15 15:27:14 -07:00
|
|
|
ensure => installed,
|
2015-01-28 19:51:43 -08:00
|
|
|
name => $httpd::params::mod_python_package,
|
2012-04-05 17:04:55 -04:00
|
|
|
require => Package['httpd'];
|
2011-07-15 15:27:14 -07:00
|
|
|
}
|
|
|
|
|
2015-09-15 10:08:02 -03:00
|
|
|
httpd::mod { 'python': ensure => present; }
|
2011-07-15 15:27:14 -07:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|