forked from SUSE/qe-sap-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcorosync.conf.j2
More file actions
50 lines (48 loc) · 1.34 KB
/
corosync.conf.j2
File metadata and controls
50 lines (48 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
totem {
version: 2
token: 30000
consensus: 36000
token_retransmits_before_loss_const: 6
{% if ansible_facts.packages['corosync'][0].version is version('3.0.0', '<') %}
crypto_cipher: {{ crypto_cipher }}
crypto_hash: {{ crypto_hash }}
{% endif %}
clear_node_high_bit: yes
{% if ansible_facts.packages['corosync'][0].version is version('3.0.0', '<') %}
rrp_mode: passive
{% endif %}
interface {
ringnumber: 0
bindnetaddr: {{ ansible_facts['eth0']['ipv4']['address'] }}
mcastport: 5405
ttl: 1
}
transport: udpu
}
logging {
fileline: off
to_logfile: yes
to_syslog: yes
logfile: /var/log/cluster/corosync.log
debug: off
timestamp: on
logger_subsys {
subsys: QUORUM
debug: off
}
}
nodelist {
{% for host in ansible_play_batch %}
node {
ring0_addr: {{ hostvars[host]['ansible_facts']['eth0']['ipv4']['address'] }}
nodeid: {{ loop.index }}
}
{% endfor %}
}
quorum {
# Enable and configure quorum subsystem (default: off)
# see also corosync.conf.5 and votequorum.5
provider: corosync_votequorum
expected_votes: 2
two_node: 1
}