Ensure purge_config takes a boolean value

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

Change-Id: I4b156ed71c9ce982e07b9d1fee53cf2562dc7340
This commit is contained in:
Takashi Kajinami 2023-07-22 23:48:22 +09:00
parent c0576f554f
commit 533955f2d1
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class mistral(
$kombu_ssl_version = $facts['os_service_default'],
$kombu_reconnect_delay = $facts['os_service_default'],
$amqp_durable_queues = $facts['os_service_default'],
$purge_config = false,
Boolean $purge_config = false,
Boolean $sync_db = true,
$max_missed_heartbeats = $facts['os_service_default'],
$check_interval = $facts['os_service_default'],

View File

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