kolla-ansible/ansible/roles/hacluster/templates/hacluster_corosync.conf.j2
Matthew N Heler e1ae8223f9 hacluster: Use nodename to align with nova service names
For Masakari and HACluster to work properly, the hostnames used
in HACluster need to match with the hostnames used in Nova.

Change-Id: Iac917ef4471905caab591cd64eab379e150a8524
2023-02-18 04:33:59 +00:00

37 lines
818 B
Django/Jinja

totem {
version: 2
cluster_name: kolla-hacluster
crypto_cipher: aes256
crypto_hash: sha384
secauth: yes
transport: knet
# NOTE(yoctozepto): despite the name, this controls knet recv port
mcastport: {{ hacluster_corosync_port }}
}
nodelist {
{% for host in groups['hacluster'] | sort %}
node {
ring0_addr: {{ 'api' | kolla_address(host) }}
name: {{ hostvars[host].ansible_facts.nodename }}
nodeid: {{ loop.index }}
}
{% endfor %}
}
quorum {
provider: corosync_votequorum
{% if groups['hacluster'] | length == 2 %}
two_node: 1
{% endif %}
}
logging {
debug: {{ 'on' if openstack_logging_debug | bool else 'off' }}
to_logfile: yes
logfile: /var/log/kolla/hacluster/corosync.log
to_stderr: no
to_syslog: no
timestamp: on
}