diff --git a/templates/corosync.conf b/templates/corosync.conf index b41c65c..5115a89 100644 --- a/templates/corosync.conf +++ b/templates/corosync.conf @@ -43,16 +43,16 @@ totem { # This specifies the mode of redundant ring, which may be none, active, or passive. rrp_mode: none + {% if transport == "udp" %} interface { # The following values need to be set based on your environment ringnumber: 0 bindnetaddr: {{ corosync_bindnetaddr }} - {% if transport == "udp" %} mcastaddr: {{ corosync_mcastaddr }} - {% endif %} mcastport: {{ corosync_mcastport }} } - transport: {{ transport }} + {% endif %} + transport: {{ transport }} } quorum { @@ -70,10 +70,10 @@ quorum { {% if transport == "udpu" %} nodelist { {% for nodeid, ip in ha_nodes.iteritems() %} - node { - ring0_addr: {{ ip }} - nodeid: {{ nodeid }} - } + node { + ring0_addr: {{ ip }} + nodeid: {{ nodeid }} + } {% endfor %} } {% endif %}