diff options
author | Michele Baldessari <michele@acksyn.org> | 2017-01-19 10:07:52 +0100 |
---|---|---|
committer | Michele Baldessari <michele@acksyn.org> | 2017-01-19 10:07:52 +0100 |
commit | be7886a30443c82d7743be8cbdf0e0e2d3a1b26a (patch) | |
tree | 84463c6c957085ab339590543d5016f71178f289 | |
parent | 3b3699ac9929ab459eec4ff2ad978c438f5dfadb (diff) |
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.
Change-Id: Ie6e19cc838a3f45100f6c98a350bdf6a37d40590
Depends-On: I20098c5d69cde356fe79f6d8dbdc03ae42ecb3ef
-rw-r--r-- | manifests/profile/base/pacemaker.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/profile/base/pacemaker.pp b/manifests/profile/base/pacemaker.pp index 671f1e7..a5a2ccd 100644 --- a/manifests/profile/base/pacemaker.pp +++ b/manifests/profile/base/pacemaker.pp @@ -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, @@ -58,6 +63,7 @@ class tripleo::profile::base::pacemaker ( } class { '::pacemaker::stonith': disable => !$enable_fencing, + tries => $pcs_tries, } if $enable_fencing { include ::tripleo::fencing |