
This allows openstacklib::defaults to be inherited by each component module avoiding duplicating the logic currently required when setting this for the various base distrobutions. Change-Id: I84b767921d151a61429b2c89e6372c4b447f0d7d
28 lines
754 B
Puppet
28 lines
754 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 {
|
|
|
|
# TODO(tobias-urdin): Remove this in the T release when we remove
|
|
# all Puppet 4 related code.
|
|
if versioncmp($::puppetversion, '5.0.0') < 0 {
|
|
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'
|
|
}
|
|
}
|