Install python3 in Fedora or RedHat > 7

Change-Id: I471a325df55b525de3b0c1dcbf5e743592c40c8a
This commit is contained in:
ZhongShengping 2018-12-12 08:54:32 +08:00
parent 2bd375adbe
commit 7f23369210

View File

@ -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 = ''