Add retries to the ::pacemaker::stonith property

Let's set a default number of retries also for the stonith
property creation. Just like we do for most of the composable
HA resource creation.

Closes-Bug: 1690132
Change-Id: Ie6e19cc838a3f45100f6c98a350bdf6a37d40590
Depends-On: I20098c5d69cde356fe79f6d8dbdc03ae42ecb3ef
(cherry picked from commit be7886a304)
This commit is contained in:
Michele Baldessari 2017-01-19 10:07:52 +01:00 committed by Marios Andreou
parent b7dbf8d8c9
commit 547d96d70d
1 changed files with 7 additions and 1 deletions

View File

@ -23,8 +23,13 @@
# for more details.
# Defaults to hiera('step')
#
# [*pcs_tries*]
# (Optional) The number of times pcs commands should be retried.
# Defaults to hiera('pcs_tries', 20)
#
class tripleo::profile::base::pacemaker (
$step = hiera('step'),
$step = hiera('step'),
$pcs_tries = hiera('pcs_tries', 20),
) {
Pcmk_resource <| |> {
tries => 10,
@ -57,6 +62,7 @@ class tripleo::profile::base::pacemaker (
}
class { '::pacemaker::stonith':
disable => !$enable_fencing,
tries => $pcs_tries,
}
if $enable_fencing {
include ::tripleo::fencing