Install python3 in Fedora or RedHat > 7

Fedora repo [1] has python3 packages, start consuming those.

[1] http://trunk.rdoproject.org/fedora/puppet-passed-ci/

Change-Id: I617b1657f4fb68066a69fa2e7ccbbcb6b86843e9
This commit is contained in:
ZhongShengping 2018-12-11 16:02:07 +08:00
parent 3ef3c45df3
commit 48a33dbc5a
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
class octavia::params {
include ::openstacklib::defaults
if ($::os_package_type == 'debian') {
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''