Use python3 mod_wsgi when running in fedora
This is part of the preparation to run in python3 environments. Additionally, this patch removes exception for fedora to install openstack-selinux in all systems. Change-Id: I8e8a65765bf29bc1a22809fcaba29985c60636f2
This commit is contained in:
parent
e2c31de9b3
commit
60a5d78b14
|
@ -1,8 +1,21 @@
|
|||
class packstack::apache ()
|
||||
{
|
||||
# Use python3 for mod_wsg in fedora
|
||||
if ($::operatingsystem == 'Fedora') or ($::osfamily == 'RedHat' and Integer.new($::operatingsystemmajrelease) > 7) {
|
||||
class { '::apache':
|
||||
purge_configs => false,
|
||||
mod_packages => merge($::apache::params::mod_packages, {
|
||||
'wsgi' => 'python3-mod_wsgi',
|
||||
}),
|
||||
mod_libs => merge($::apache::params::mod_libs, {
|
||||
'wsgi' => 'mod_wsgi_python3.so',
|
||||
})
|
||||
}
|
||||
}else{
|
||||
class {'::apache':
|
||||
purge_configs => false,
|
||||
}
|
||||
}
|
||||
|
||||
if hiera('CONFIG_HORIZON_SSL') == 'y' {
|
||||
ensure_packages(['mod_ssl'], {'ensure' => 'present'})
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
class packstack::prereqs ()
|
||||
{
|
||||
# We don't have openstack-selinux package for Fedora
|
||||
if $::operatingsystem != 'Fedora' {
|
||||
package{ 'openstack-selinux':
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
|
||||
package { 'sos':
|
||||
ensure => present,
|
||||
|
|
Loading…
Reference in New Issue