In invirt-cluster-config:
[invirt/packages/invirt-cluster-config.git] / debian / corosync.conf.invirt.mako
1 <%
2 from invirt.config import structs as cfg
3 ring = 0
4 %>\
5 compatibility: whitetank
6
7 totem {
8         version: 2
9         secauth: off
10 % if len(cfg.cluster.rings) > 1:
11         rrp_mode: passive
12 % endif
13 % for r in cfg.cluster.rings:
14         interface {
15                 ringnumber: ${ring}
16                 bindnetaddr: ${r.bind}
17                 mcastaddr: ${r.mcast}
18                 mcastport: ${r.port}
19         }
20 <% ring += 1 %>\
21 % endfor
22 }
23
24 logging {
25         to_syslog: yes
26         syslog_facility: daemon
27         timestamp: on
28         debug: off
29 }
30
31 amf {
32         mode: disabled
33 }