Merge "Set pyvers in defaults"
This commit is contained in:
commit
f3513f03b3
@ -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'
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user