From e46f94fee092157118267d5d53cb26197d3c4625 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 11 Dec 2018 15:48:06 +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: Ib1ee41b2c5759d6afc2101f3ec07970d2afef54e --- manifests/params.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 7f39fbf..5878f77 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -5,7 +5,8 @@ class cloudkitty::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 = ''