Do not fail fencing configuration when instanceha is disabled
Right now we fail like this if fencing is enabled but instanceha is not: "Error: Evaluation Error: Error while evaluating a Function Call, Could not find data item compute_instanceha_short_node_names in any Hiera data file and no default supplied at /etc/puppet/modules/tripleo/manifests/fencing.pp:61:13 on node controller-0.localdomain" Change-Id: I36691997bffc56cb4fe17b2f762e4d44d71dfe50 Closes-Bug: #1747643
This commit is contained in:
parent
19289b4e53
commit
ee7be9b7ad
@ -58,7 +58,7 @@ class tripleo::fencing(
|
||||
'try_sleep' => $try_sleep,
|
||||
}
|
||||
# We will create stonith levels *only* if the node is a compute instanceha one
|
||||
if member(hiera('compute_instanceha_short_node_names'), downcase($::hostname)) {
|
||||
if member(hiera('compute_instanceha_short_node_names', []), downcase($::hostname)) {
|
||||
$is_compute_instanceha_node = true
|
||||
} else {
|
||||
$is_compute_instanceha_node = false
|
||||
|
Loading…
Reference in New Issue
Block a user