Merge "Set pyvers in defaults"

This commit is contained in:
Zuul 2019-01-14 20:06:10 +00:00 committed by Gerrit Code Review
commit f3513f03b3
1 changed files with 12 additions and 0 deletions

View File

@ -12,4 +12,16 @@ class openstacklib::defaults {
warning('OpenStack modules support for Puppet 4 is deprecated \
and will be officially unsupported in the T release')
}
if ($::os['family'] == 'Debian') {
$pyvers = '3'
$pyver3 = '3'
} elsif ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
$pyver3 = '3.6'
} else {
$pyvers = ''
$pyver3 = '2.7'
}
}