From edb3a0e4eeab4ce490ed67ba0d23bc95963fd740 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 11 Dec 2018 15:54:17 +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: I7dd423e8b15f0d8b98f365ef0562d716068eb3aa --- manifests/params.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index b04ed59..3e0597c 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -3,7 +3,8 @@ class glare::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 = ''