Files
puppet-openstacklib/manifests/openstackclient.pp
Takashi Kajinami d8e3f31d40 Validate ensure parameter for package resources
The minimum version of puppetlabs-stdlib has been bumped globally, so
now we can use the common type definition.

Change-Id: I88d66de08328b85c550b04b38fa37e1eee98f964
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-09-23 18:07:52 +09:00

24 lines
704 B
Puppet

# == Class: openstacklib::openstackclient
#
# Installs the openstackclient
#
# == Parameters
#
# [*package_ensure*]
# (Optional) Ensure state of the openstackclient package.
# Defaults to 'present'
#
# [*package_name*]
# (Optional) The name of the package to install
# Defaults to $openstacklib::params::openstackclient_package_name
#
class openstacklib::openstackclient (
String[1] $package_name = $openstacklib::params::openstackclient_package_name,
Stdlib::Ensure::Package $package_ensure = 'present'
) inherits openstacklib::params {
stdlib::ensure_packages($package_name, {
'ensure' => $package_ensure,
'tag' => ['openstack', 'openstackclient']
})
}