Load python3 mod_wsgi for fedora/rhel8

The python3 containers/systems will have the python3 mod_wsgi and not
the python2 version. For now we can manage this in our apache base until
a newer puppetlabs-apache supports the newer packages.

Change-Id: Id17539959454f2846a432a03c497de52a0f07798
Closes-Bug: #1813053
This commit is contained in:
Alex Schultz 2019-01-23 12:22:01 -07:00
parent 67267897ab
commit 1eedba81fd
2 changed files with 10 additions and 2 deletions

View File

@ -32,9 +32,17 @@ class tripleo::profile::base::apache(
Boolean $enable_status_listener = false,
String $status_listener = '127.0.0.1:80',
) {
include ::apache::params
# rhel8/fedora will be python3. See LP#1813053
if ($::os['name'] == 'Fedora') or ($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
class { '::apache':
mod_packages => merge($::apache::params::mod_packages, { 'wsgi' => 'python3-mod_wsgi' }),
mod_libs => merge($::apache::params::mod_libs, { 'wsgi' => 'mod_wsgi_python3.so' }),
}
}
include ::apache::mod::status
include ::apache::mod::ssl
if $enable_status_listener {
if !defined(Apache::Listen[$status_listener]) {
::apache::listen {$status_listener: }

View File

@ -84,8 +84,8 @@ class tripleo::profile::base::horizon (
if $step >= 4 or ( $step >= 3 and $is_bootstrap ) {
# Horizon
include ::apache::mod::remoteip
include ::tripleo::profile::base::apache
include ::apache::mod::remoteip
if 'cisco_n1kv' in hiera('neutron::plugins::ml2::mechanism_drivers', undef) {
$_profile_support = 'cisco'