From 2e13d5d6755e19c797368bf8a5a3aeffc90b296a Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 11 Dec 2018 16:03:53 +0800 Subject: [PATCH] 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 --- manifests/params.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 6072371..572956d 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 = ''