kolla-ansible/ansible/roles/hacluster/templates/hacluster_corosync.conf.j2
Gaëtan Trellu 9f578c85e0 Add HAcluster Ansible role
Adds HAcluster Ansible role. This role contains High Availability
clustering solution composed of Corosync, Pacemaker and Pacemaker Remote.

HAcluster is added as a helper role for Masakari which requires it for
its host monitoring, allowing to provide HA to instances on a failed
compute host.

Kolla hacluster images merged in [1].

[1] https://review.opendev.org/#/c/668765/

Change-Id: I91e5c1840ace8f567daf462c4eb3ec1f0c503823
Implements: blueprint ansible-pacemaker-support
Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Co-Authored-By: Mark Goddard <mark@stackhpc.com>
2021-04-08 06:39:19 +00:00

37 lines
815 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_hostname'] }}
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
}