From d459be69cdc75a1226253d4ae4249c940a3d0bf1 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 17 Jul 2023 13:00:23 +0900 Subject: [PATCH] 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 --- manifests/init.pp | 4 ++-- manifests/policy.pp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 31c2552a..a61a6d0d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 diff --git a/manifests/policy.pp b/manifests/policy.pp index 913981be..65f907db 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -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