~openstack-charmers-next/charms/xenial/hacluster/trunk

« back to all changes in this revision

Viewing changes to templates/corosync.conf

  • Committer: billy.olsen at canonical
  • Date: 2015-09-21 22:17:46 UTC
  • mfrom: (54.2.2 trunk)
  • Revision ID: billy.olsen@canonical.com-20150921221746-j1j5frulf4stwcby
[nobuto,r=billy-olsen] Let corosync decide the best bindnetaddr from
nodelist in the case of corosync_transport=udpu.

Partially-Closes-Bug: 1483317

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        # This specifies the mode of redundant ring, which may be none, active, or passive.
44
44
        rrp_mode: none
45
45
 
 
46
        {% if transport == "udp" %}
46
47
        interface {
47
48
                # The following values need to be set based on your environment
48
49
                ringnumber: 0
49
50
                bindnetaddr: {{ corosync_bindnetaddr }}
50
 
                {% if transport == "udp" %}
51
51
                mcastaddr: {{ corosync_mcastaddr }}
52
 
                {% endif %}
53
52
                mcastport: {{ corosync_mcastport }}
54
53
        }
55
 
        transport: {{ transport }}
 
54
        {% endif %}
 
55
        transport: {{ transport }}
56
56
}
57
57
 
58
58
quorum {
70
70
{% if transport == "udpu" %}
71
71
nodelist {
72
72
{% for nodeid, ip in ha_nodes.iteritems() %}
73
 
        node {
74
 
               ring0_addr: {{ ip }}
75
 
               nodeid: {{ nodeid }}
76
 
        }
 
73
        node {
 
74
                ring0_addr: {{ ip }}
 
75
                nodeid: {{ nodeid }}
 
76
        }
77
77
{% endfor %}
78
78
}
79
79
{% endif %}