7a75e103af
* 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>
79 lines
1.8 KiB
Plaintext
79 lines
1.8 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 %>
|
|
<% [@bind_address_real].flatten.each_index do |i| -%>
|
|
interface {
|
|
ringnumber: <%= i %>
|
|
bindnetaddr: <%= [@bind_address_real].flatten[i] %>
|
|
<% if [@multicast_address_real].flatten[i] == 'broadcast' -%>
|
|
broadcast: yes
|
|
<% else -%>
|
|
mcastaddr: <%= [@multicast_address_real].flatten[i] %>
|
|
mcastport: <%= [@port_real].flatten[i] %>
|
|
<% end -%>
|
|
<% if @ttl -%>
|
|
ttl: <%= @ttl %>
|
|
<% end -%>
|
|
}
|
|
<% 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
|
|
}
|