fuel-library/deployment/puppet/corosync/templates/corosync.conf.erb
Dmitry Ilyin 3b01fecf2e Fixes for pcmk_nodes and crm_node
* Use crm_node -n to get node's hostname
* Check if node is in cluster in service provider
* implement pacemaker nodes add in pcmk_nodes
* compatibility between fqdn and hostname in pcmk_nodes
* fix new node id and number generation in pcmk_nodes

Change-Id: I2e40e25df975621506141dfe78efa884255f1642
Related-Bug: 1451795
2015-05-14 17:29:05 +03:00

79 lines
1.8 KiB
Plaintext

<% if @corosync_version == '2' -%>
compatibility: whitetank
quorum {
provider: corosync_votequorum
<% if @corosync_nodes.length == 2 -%>
two_node: 1
<% else -%>
two_node: 0
<% end -%>
}
nodelist {
<% @corosync_nodes.each do |name, node| -%>
node {
# <%= name %>
ring0_addr: <%= node['ip'] %>
nodeid: <%= node['id'] %>
}
<% 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: <%= @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
}