Browse Source

Merge "minor update: only migrate HA VIP away when needed" into stable/train

changes/69/747769/6
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
9ba27e1ef8
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      deployment/pacemaker/pacemaker-baremetal-puppet.yaml

+ 3
- 1
deployment/pacemaker/pacemaker-baremetal-puppet.yaml View File

@@ -322,7 +322,9 @@ outputs:
async: 30
poll: 4
- 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: |
CLUSTER_NODE=$(crm_node -n)
echo "Retrieving all the VIPs which are hosted on this node"


Loading…
Cancel
Save