Files
puppet-openstacklib/manifests/params.pp
Tobias Urdin 7f898a48eb Fix lint
Fixes the lint issues now that the lint jobs fail
properly.

Change-Id: I78caa461fc9b2327a5d1ba39488f924f26da4354
2018-12-18 11:07:09 +01:00

16 lines
446 B
Puppet

# == Class: openstacklib::params
#
# These parameters need to be accessed from several locations and
# should be considered to be constant
#
class openstacklib::params {
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''
}
$openstackclient_package_name = "python${pyvers}-openstackclient"
}