Allow the override of pacemaker::corosync::settle_tries
authorMichele Baldessari <michele@acksyn.org>
Fri, 27 Jan 2017 07:10:39 +0000 (08:10 +0100)
committerMichele Baldessari <michele@acksyn.org>
Fri, 27 Jan 2017 07:26:44 +0000 (08:26 +0100)
commit48692127d09ef577b5b691fc12ccb9055b73759b
tree2c3a3d852c00008cbfbed95a100a9382b4e4b796
parent91a231d80815dc2ad45cc9502151e68b636090d0
Allow the override of pacemaker::corosync::settle_tries

When replacing a controller node, Exec['wait-for-settle'] needs to
timeout, which means that the command pcs cluster auth will be executed
360 times with 10 seconds in between. So that means waiting for an hour
for no reason. Let's allow to override the settle_tries counter so
an operator can shorten it accordingly.

Tested this by setting CorosyncSettleTries to 100 and I correctly get
proper hiera settings:
$ hiera pacemaker::corosync::settle_tries
100

And effectively we try a number of 100 times as opposed to the 360
default:
/Stage[main]/Pacemaker::Corosync/Exec[reauthenticate-across-all-nodes]/returns
(debug): Exec try 1/100

Change-Id: I5e21b4215cb0b8686d2059b3d71e2444a96719dc
Closes-Bug: #1659741
puppet/services/pacemaker.yaml