Enable deep_compare for fencing resource

This complements https://review.opendev.org/#/c/679407 allowing
deep_compare and update_settle_secs to be set globally via:

  tripleo::fencing::deep_compare: true
  tripleo::fencing::update_settle_secs: XXX

Depends-on: https://review.opendev.org/#/c/679407

Change-Id: I0e1a8da4112479f39ad72fd7184ad5838c5b59fe
This commit is contained in:
Luca Miccini 2019-09-12 17:14:21 +02:00
parent bbef575f01
commit 35964d29d4
1 changed files with 20 additions and 4 deletions

View File

@ -43,19 +43,35 @@
# and constraints.
# Defaults to 3
#
# [*deep_compare*]
# Enable deep comparing of resources and bundles
# When set to true a resource will be compared in full (options, meta parameters,..)
# to the existing one and in case of difference it will be repushed to the CIB
# Defaults to false
#
# [*update_settle_secs*]
# When deep_compare is enabled and puppet updates a resource, this
# parameter represents the number (in seconds) to wait for the cluster to settle
# after the resource update.
# Defaults to 600 (seconds)
#
# [*enable_instanceha*]
# (Optional) Boolean driving the Instance HA controlplane configuration
# Defaults to false
#
class tripleo::fencing(
$config = {},
$tries = 10,
$try_sleep = 3,
$enable_instanceha = hiera('tripleo::instanceha', false),
$config = {},
$tries = 10,
$try_sleep = 3,
$deep_compare = false,
$update_settle_secs = 600,
$enable_instanceha = hiera('tripleo::instanceha', false),
) {
$common_params = {
'tries' => $tries,
'try_sleep' => $try_sleep,
'deep_compare' => $deep_compare,
'update_settle_secs' => $update_settle_secs
}
# check if instanceha is enabled