Files
puppet-openstacklib/manifests/openstackclient.pp
Tobias Urdin 709b28006b openstacklib::openstackclient Debian python3
This change adds support for installing the
python3-openstackclient package on Debian.

On Ubuntu and RedHat based the package name
is still python-openstackclient.

Change-Id: I8a0c5dfa9274dca167ad3bb33ab151fb693f5d4d
2018-04-24 15:54:35 +02:00

25 lines
545 B
Puppet

# == Class: openstacklib::openstackclient
#
# Installs the openstackclient
#
# == Parameters
#
# [*package_ensure*]
# (Optional) Ensure state of the openstackclient package.
# Defaults to 'present'
#
class openstacklib::openstackclient(
$package_ensure = 'present',
){
$openstackclient_package_name = $::os_package_type ? {
'debian' => 'python3-openstackclient',
default => 'python-openstackclient',
}
ensure_packages($openstackclient_package_name, {
'ensure' => $package_ensure,
'tag' => 'openstack'
})
}