Merge "Install python3 in Fedora or RedHat > 7"

This commit is contained in:
Zuul 2018-12-13 00:25:42 +00:00 committed by Gerrit Code Review
commit f933c3f6f9
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@
class trove::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 = ''