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: I9491fe335fc10e56581e38137dd4e2132039ab13
This commit is contained in:
ZhongShengping 2018-12-11 16:03:53 +08:00
parent 58949a15d3
commit 2e13d5d675
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ class tacker::params {
include ::openstacklib::defaults
$group = 'tacker'
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 = ''