lib/poolparty/templates/ha.cf in poolparty-0.2.69 vs lib/poolparty/templates/ha.cf in poolparty-0.2.84

- old
+ new

@@ -1,19 +1,17 @@ # Heartbeat -keepalive 2 # Time inbetween heartbeats -deadtime 32 # wait 32 seconds before declaring dead +keepalive 5 # Time inbetween heartbeats +deadtime 32 # wait 10 seconds before declaring dead warntime 16 # issue a warning halfway through initdead 60 # Don't boot instances between 60 seconds of each other logfacility daemon # Log to syslog as facility "daemon" -auto_failback off +auto_failback on use_logd yes -bcast eth0 -crm on -logfile /var/log/ha.log +crm yes <% ha_node_ips.chomp.split(/\t/).each_with_index do |ip,index| -%> - <% if $hostname != ha_nodenames.chomp.split(/\t/)[index] -%> - ucast eth0 <%= ip %> - <% end %> -<% end %> + <% if hostname != ha_nodenames.chomp.split(/\t/)[index] -%> +ucast eth0 <%= ip %> + <% end -%> +<% end -%> -node <%= ha_nodenames %> +node <%= ha_nodenames.chomp.split(/\t/).join(" ") %> \ No newline at end of file