Ensure purge_config takes a boolean value

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

Change-Id: Ie504006737f094704bbff8499ac9ddbb9e8f75f5
This commit is contained in:
Takashi Kajinami 2023-07-22 23:53:37 +09:00
parent a9d4fb7df1
commit 69c1e88fd1
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class zaqar(
$management_store = 'mongodb',
$package_name = $::zaqar::params::package_name,
$package_ensure = 'present',
$purge_config = false,
Boolean $purge_config = false,
) inherits zaqar::params {
include zaqar::deps

View File

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