fuel-library/deployment/puppet/corosync/templates/corosync.conf.udpu.erb
Bogdan Dobrelya 7a75e103af Adapt corosync for Fuel
* Fix *_real evaluation for erb templates
 (TODO contribute to puppetlabs-corosync upstream)
* Add corosync v2 support
 (TODO contribute to puppetlabs-corosync upstream)
* Adjust logging options for corosync.conf
 (TODO contribute to puppetlabs-corosync upstream)
* Remove 'retries' references for cs_property
* Fix missing block until ready call for cs_property flush
 (TODO contribute to puppetlabs-corosync upstream)
* Rename custom cs_* providers tuned for a parallel execution
  and move them to the pacemaker module:
  - cs_resource
  - cs_rsc_colocation
  - cs_rsc_location
  - cs_rsc_order
* TODO Fix Pacemaker module rspecs (disabled in utils for now)
* Enable rspecs for corosync module

Fuel-ci: disable
related blueprint corosync-2

Change-Id: Ib04360291f99f790f442c4f7382a863206078e27
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-01-23 11:05:09 +01:00

78 lines
1.7 KiB
Plaintext

<% if @corosync_version == '2' %>
compatibility: whitetank
quorum {
provider: corosync_votequorum
<% if @unicast_addresses.length == 2 %>
two_node: 1
<% else %>
two_node: 0
<% end %>
}
nodelist {
<% id = 0 %>
<% @unicast_addresses.each do |node| %>
node {
ring0_addr: <%= node %>
nodeid: <%= id+=1 %>
}
<% end %>
}
<% end %>
totem {
version: 2
token: 3000
token_retransmits_before_loss_const: 10
join: 60
consensus: 3600
vsftype: none
max_messages: 20
clear_node_high_bit: yes
rrp_mode: <%= @rrp_mode %>
secauth: <%= @enable_secauth_real %>
threads: <%= @threads_real %>
transport: udpu
interface {
<% @unicast_addresses.each do |addr| -%>
member {
memberaddr: <%= addr %>
}
<% end -%>
ringnumber: 0
bindnetaddr: <%= @bind_address_real %>
mcastport: <%= @port_real %>
<% if @ttl -%>
ttl: <%= @ttl %>
<% end -%>
}
}
logging {
fileline: off
to_stderr: no
to_logfile: no
logfile: /var/log/corosync.log
to_syslog: yes
syslog_facility: daemon
syslog_priority: info
debug: <%= scope.lookupvar('debug') ? 'on' : 'off' %>
function_name: on
timestamp: on
logger_subsys {
subsys: AMF
debug: off
tags: enter|leave|trace1|trace2|trace3|trace4|trace6
}
}
amf {
mode: disabled
}
aisexec {
user: root
group: root
}