diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-16 20:39:12 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-16 20:39:12 +0000 |
commit | b4ace4f298c6d1435f3b7b95791788571e905ef8 (patch) | |
tree | 854bd74fd4613ce2abf6ea25f0d0f7282bb900b6 /manifests | |
parent | 62dffeb9dad1394e27de4f8c709f6534ecab8ad3 (diff) | |
parent | 332755c0fd586f0a3085704b3f4bda78ad8a87ad (diff) |
Merge "Only set the stonith property on the pacemaker_master node"
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/profile/base/pacemaker.pp | 8 | ||||
-rw-r--r-- | manifests/profile/base/pacemaker_remote.pp | 7 |
2 files changed, 5 insertions, 10 deletions
diff --git a/manifests/profile/base/pacemaker.pp b/manifests/profile/base/pacemaker.pp index 811b911..bd92c98 100644 --- a/manifests/profile/base/pacemaker.pp +++ b/manifests/profile/base/pacemaker.pp @@ -111,9 +111,11 @@ class tripleo::profile::base::pacemaker ( cluster_setup_extras => $cluster_setup_extras, remote_authkey => $remote_authkey, } - class { '::pacemaker::stonith': - disable => !$enable_fencing, - tries => $pcs_tries, + if $pacemaker_master { + class { '::pacemaker::stonith': + disable => !$enable_fencing, + tries => $pcs_tries, + } } if $enable_fencing { include ::tripleo::fencing diff --git a/manifests/profile/base/pacemaker_remote.pp b/manifests/profile/base/pacemaker_remote.pp index dfe0a3e..8264132 100644 --- a/manifests/profile/base/pacemaker_remote.pp +++ b/manifests/profile/base/pacemaker_remote.pp @@ -46,11 +46,6 @@ class tripleo::profile::base::pacemaker_remote ( } $enable_fencing_real = str2bool($enable_fencing) and $step >= 5 - class { '::pacemaker::stonith': - disable => !$enable_fencing_real, - tries => $pcs_tries, - } - if $enable_fencing_real { include ::tripleo::fencing @@ -58,7 +53,5 @@ class tripleo::profile::base::pacemaker_remote ( Pcmk_resource<||> -> Class['tripleo::fencing'] Pcmk_constraint<||> -> Class['tripleo::fencing'] Exec <| tag == 'pacemaker_constraint' |> -> Class['tripleo::fencing'] - # enable stonith after all fencing devices have been created - Class['tripleo::fencing'] -> Class['pacemaker::stonith'] } } |