Use python3 wsgi packages for RedHat > 7
Change-Id: I43e9682e07ba00594a7191df10eb16a7a7e14a06
This commit is contained in:
parent
43ec9b9232
commit
d87c564bc4
@ -18,11 +18,13 @@ if ($::os_package_type == 'debian') {
|
|||||||
$wsgi_mod_package = 'libapache2-mod-wsgi-py3'
|
$wsgi_mod_package = 'libapache2-mod-wsgi-py3'
|
||||||
$wsgi_mod_lib = undef
|
$wsgi_mod_lib = undef
|
||||||
}
|
}
|
||||||
elsif ($::operatingsystem == 'Fedora') {
|
elsif ($::os['name'] == 'Fedora') or
|
||||||
|
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
||||||
$wsgi_mod_package = 'python3-mod_wsgi'
|
$wsgi_mod_package = 'python3-mod_wsgi'
|
||||||
$wsgi_mod_lib = 'mod_wsgi_python3.so'
|
$wsgi_mod_lib = 'mod_wsgi_python3.so'
|
||||||
}
|
}
|
||||||
if ($::os_package_type == 'debian') or ($::operatingsystem == 'Fedora') {
|
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
|
||||||
|
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
||||||
include ::apache::params
|
include ::apache::params
|
||||||
class { '::apache':
|
class { '::apache':
|
||||||
mod_packages => merge($::apache::params::mod_packages, {
|
mod_packages => merge($::apache::params::mod_packages, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user