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>
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
class openstacklib::iscsid (
|
class openstacklib::iscsid (
|
||||||
Boolean $enabled = true,
|
Boolean $enabled = true,
|
||||||
Boolean $manage_service = true,
|
Boolean $manage_service = true,
|
||||||
$package_ensure = 'present'
|
Stdlib::Ensure::Package $package_ensure = 'present'
|
||||||
) {
|
) {
|
||||||
include openstacklib::params
|
include openstacklib::params
|
||||||
|
|
||||||
|
@@ -13,8 +13,8 @@
|
|||||||
# Defaults to $openstacklib::params::openstackclient_package_name
|
# Defaults to $openstacklib::params::openstackclient_package_name
|
||||||
#
|
#
|
||||||
class openstacklib::openstackclient (
|
class openstacklib::openstackclient (
|
||||||
$package_name = $openstacklib::params::openstackclient_package_name,
|
String[1] $package_name = $openstacklib::params::openstackclient_package_name,
|
||||||
$package_ensure = 'present',
|
Stdlib::Ensure::Package $package_ensure = 'present'
|
||||||
) inherits openstacklib::params {
|
) inherits openstacklib::params {
|
||||||
stdlib::ensure_packages($package_name, {
|
stdlib::ensure_packages($package_name, {
|
||||||
'ensure' => $package_ensure,
|
'ensure' => $package_ensure,
|
||||||
|
Reference in New Issue
Block a user