508fc7adde
Since everyone has switched to Python3, it's time for the removal of the $pyvers variable. Change-Id: I371ef3a2e257e6d197238e7e9cbfd9d445405be5
25 lines
630 B
Puppet
25 lines
630 B
Puppet
# == Class: openstacklib::defaults
|
|
#
|
|
# Default configuration for all openstack-puppet module.
|
|
#
|
|
# This file is loaded in the params.pp of each class.
|
|
#
|
|
class openstacklib::defaults {
|
|
|
|
if ($::os['family'] == 'Debian') {
|
|
$pyver3 = '3'
|
|
} elsif $::os['family'] == 'RedHat' {
|
|
if Integer.new($::os['release']['major']) > 8 {
|
|
$pyver3 = '3.9'
|
|
} elsif Integer.new($::os['release']['major']) == 8 {
|
|
$pyver3 = '3.6'
|
|
} else {
|
|
$pyver3 = '2.7'
|
|
}
|
|
} else {
|
|
# TODO(tkajinam) This is left to keep the previous behavior but we should
|
|
# revisit this later.
|
|
$pyver3 = '2.7'
|
|
}
|
|
}
|