From 35964d29d4bb1fabbc8c0e444c1756f97a840ec2 Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Thu, 12 Sep 2019 17:14:21 +0200 Subject: [PATCH] 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 --- manifests/fencing.pp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/manifests/fencing.pp b/manifests/fencing.pp index 4c4c16646..d64cb05cf 100644 --- a/manifests/fencing.pp +++ b/manifests/fencing.pp @@ -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