Make the cluster-check property configurable
authorMichele Baldessari <michele@acksyn.org>
Tue, 4 Apr 2017 16:15:06 +0000 (18:15 +0200)
committerMichele Baldessari <michele@acksyn.org>
Fri, 7 Apr 2017 06:39:41 +0000 (08:39 +0200)
commit0a12215f908acaabba3de5ca32cea76d8a990494
tree4d077e3126051b53331d40a6202a2ea6519df091
parent58e4dc837f77a92585a8f54d3cf642014c40bd6e
Make the cluster-check property configurable

This change will make the global cluster-check property configurable
and will pick a lower default (60s) in case a pacemaker remote node
is deployed.

The cluster-recheck-interval is set to default to 15minutes by
pacemaker. This value is too high when a pacemaker remote service
is deployed. With this default value a reboot of a pacemaker remote
node will be reported as offline by pacemaker for up to 15minutes.

With this change we do the following:
1) Do nothing in case pacemaker remote is not deployed
2) When pacemaker remote is deployed and the operator has not
   specified otherwise, we set the recheck interval to 60s.
3) When the operator specifies the recheck interval we set that.

Change-Id: I900952b33317b7998a1f26a65f4d70c1726df19c
Closes-Bug: #1679753
(cherry picked from commit f464e9f703b824f8971ade50c32884748caffefc)
manifests/profile/base/pacemaker.pp