puppet-openstacklib/manifests/defaults.pp
Thomas Goirand 508fc7adde Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I371ef3a2e257e6d197238e7e9cbfd9d445405be5
2021-06-29 08:06:57 +09:00

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'
}
}