Allow overriding pacemaker_node_ips for staged upgrade
We already have pacemaker_short_node_names_override, and we need a matching pacemaker_node_ips_override as the two variables must be overriden together. Change-Id: Ibd95f4536c033af2094bd079cc81eeba18a36352 Partial-Bug: #1832361
This commit is contained in:
parent
e3035cdec3
commit
42f07b25f7
@ -138,9 +138,9 @@ class tripleo::profile::base::pacemaker (
|
||||
'--token' => hiera('corosync_token_timeout', 1000)
|
||||
}
|
||||
}
|
||||
# If hiera('pacemaker_node_ips', []) is not empty we want to create the array
|
||||
# If pacemaker_node_ips is not empty we want to create the array
|
||||
# for puppet pacemaker to use as addresses list which is an array of arrays.
|
||||
$pacemaker_node_ips = hiera('pacemaker_node_ips', [])
|
||||
$pacemaker_node_ips = hiera('pacemaker_node_ips_override', hiera('pacemaker_node_ips', []))
|
||||
if count($pacemaker_node_ips) > 0 {
|
||||
$pacemaker_node_ips_real = $pacemaker_node_ips.map |$x| { Array([$x]) }
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user