
Fedora support is never tested, and has been unmaintained for a while. Because we don't expect any actual user using OpenStack on Fedora, this change drops support for Fedora directly. Change-Id: I63c96cd92bad210c0a9527c59f8e1347967172a3
30 lines
724 B
Puppet
30 lines
724 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') {
|
|
$pyvers = '3'
|
|
$pyver3 = '3'
|
|
} elsif $::os['family'] == 'RedHat' {
|
|
if Integer.new($::os['release']['major']) > 8 {
|
|
$pyvers = '3'
|
|
$pyver3 = '3.9'
|
|
} elsif Integer.new($::os['release']['major']) == 8 {
|
|
$pyvers = '3'
|
|
$pyver3 = '3.6'
|
|
} else {
|
|
$pyvers = ''
|
|
$pyver3 = '2.7'
|
|
}
|
|
} else {
|
|
# TODO(tkajinam) This is left to keep the previous behavior but we should
|
|
# revisit this later.
|
|
$pyvers = ''
|
|
$pyver3 = '2.7'
|
|
}
|
|
}
|