Skip to content

Commit 078f1f8

Browse files
authored
Update corosync.conf.j2
_pacemaker_corosync_bind_addr was only generating the ip address of the current node and so on all nodes you got the same ip address.
1 parent 7ae17fb commit 078f1f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/corosync.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ quorum {
3030
nodelist {
3131
{% for node in groups[pacemaker_corosync_group]|sort %}
3232
node {
33-
ring0_addr: {{ _pacemaker_corosync_bind_addr }}
33+
ring0_addr: {{ hostvars[node]['ansible_' + pacemaker_corosync_ring_interface | replace('-', '_')].ipv4.address }}
3434
name: {{ pacemaker_corosync_fqdn | bool | ternary(hostvars[node].ansible_fqdn, node) }}
3535
nodeid: {{ loop.index }}
3636
}

0 commit comments

Comments
 (0)