6bdeca8d21
This changes all the puppet 3 validate_* functions to use the validate_legacy function. The validate_legacy function has been available since about three years but require Puppet >= 4.4.0 and since there is Puppet 4.10.12 as latest we should assume people are running a fairly new Puppet 4 version. This is the first step to then remove all validate function calls and use proper types for parameter as described in spec [1]. [1] https://review.openstack.org/#/c/568929/ Change-Id: I70b9cafad10ec5abfc0166feb01c49adbd1f517d
19 lines
385 B
Puppet
19 lines
385 B
Puppet
# == Class: openstacklib::policies
|
|
#
|
|
# This resource is an helper to call the policy definition
|
|
#
|
|
# == Parameters:
|
|
#
|
|
# [*policies*]
|
|
# Hash of policies one would like to set to specific values
|
|
# hash; optional
|
|
#
|
|
class openstacklib::policy (
|
|
$policies = {},
|
|
) {
|
|
|
|
validate_legacy(Hash, 'validate_hash', $policies)
|
|
|
|
create_resources('openstacklib::policy::base', $policies)
|
|
}
|