Merge "minor update: only migrate HA VIP away when needed" into stable/train
This commit is contained in:
commit
9ba27e1ef8
|
@ -322,7 +322,9 @@ outputs:
|
||||||
async: 30
|
async: 30
|
||||||
poll: 4
|
poll: 4
|
||||||
- name: Move virtual IPs to another node before stopping pacemaker
|
- name: Move virtual IPs to another node before stopping pacemaker
|
||||||
when: step|int == 1
|
when:
|
||||||
|
- step|int == 1
|
||||||
|
- hostvars[inventory_hostname]["haproxy_node_names"]|default([])|length > 1
|
||||||
shell: |
|
shell: |
|
||||||
CLUSTER_NODE=$(crm_node -n)
|
CLUSTER_NODE=$(crm_node -n)
|
||||||
echo "Retrieving all the VIPs which are hosted on this node"
|
echo "Retrieving all the VIPs which are hosted on this node"
|
||||||
|
|
Loading…
Reference in New Issue