Ensure purge_config takes a boolean value

The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I669f1a2ff2462d60afe2fbd0c33e607d20cb14fc
This commit is contained in:
Takashi Kajinami 2023-07-17 13:00:23 +09:00
parent 6e2515b4fd
commit d459be69cd
2 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@
# Defaults to false.
#
class barbican(
$package_ensure = 'present',
$purge_config = false,
$package_ensure = 'present',
Boolean $purge_config = false,
) {
include barbican::deps

View File

@ -52,7 +52,7 @@ class barbican::policy (
$policy_path = '/etc/barbican/policy.yaml',
$policy_default_rule = $facts['os_service_default'],
$policy_dirs = $facts['os_service_default'],
$purge_config = false,
Boolean $purge_config = false,
) {
include barbican::deps