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: I9bfa7988174dbbeb26dd7677e28604f6d04fd174
This commit is contained in:
ZhongShengping 2018-12-11 15:58:44 +08:00
parent 9f812beefb
commit 3b3fcb6817
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ class magnum::params {
if ($::os_package_type == 'debian') {
$pyvers = '3'
$pyver3 = '3'
} elsif ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
$pyver3 = '3.6'
} else {
$pyvers = ''
$pyver3 = '2.7'