From 7f2336921076456e734d74eca4ce2c08d4746394 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Wed, 12 Dec 2018 08:54:32 +0800 Subject: [PATCH] Install python3 in Fedora or RedHat > 7 Change-Id: I471a325df55b525de3b0c1dcbf5e743592c40c8a --- manifests/params.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 39fc427..3ceb7ea 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -3,7 +3,8 @@ class watcher::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 = ''