Install python3-swift 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: I03cff2fc96ec692cedeea39ed898ff459e3d8dd9
This commit is contained in:
Quique Llorente 2018-11-06 17:33:23 +01:00
parent 6a059689a5
commit 092615ff80
1 changed files with 2 additions and 1 deletions

View File

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