Heartbeat cookbook

Hi all,

currently I’m struggling with heartbeat cookbook -> https://supermarket.chef.io/cookbooks/heartbeat

I was able to configure and deploy the cookbook, but I’m facing the problem, that I’m not able to set the default node. In template “default/haresources.erb” the following code block is executed:

<% @heartbeat.resource_groups.each do |group| -%>
<%= group.default_node || @default %> <%= group.sub_resources.map{|r| r.to_resource}.join(’ ') %>
<% end -%>

I really tried a lot of things, but I was not able to figure out, how the value default_node could be configured. I apply heartbeat config with following resource block:

heartbeat ‘heartbeat’ do
auto_failback node[‘heartbeat’][‘config’][‘auto_failback’]
autojoin node[‘heartbeat’][‘config’][‘autojoin’]
compression node[‘heartbeat’][‘config’][‘compression’]
compression_threshold node[‘heartbeat’][‘config’][‘compression_threshold’]
deadtime node[‘heartbeat’][‘config’][‘deadtime’]
initdead node[‘heartbeat’][‘config’][‘initdead’]
keepalive node[‘heartbeat’][‘config’][‘keepalive’]
logfacility node[‘heartbeat’][‘config’][‘logfacility’]
udpport node[‘heartbeat’][‘config’][‘udpport’]
warntime node[‘heartbeat’][‘config’][‘warntime’]
search node[‘heartbeat’][‘config’][‘search’]
authkeys node[‘heartbeat’][‘config’][‘authkeys’]
active_key node[‘heartbeat’][‘config’][‘active_key’]
mode node[‘heartbeat’][‘config’][‘mode’]
interface node[‘heartbeat’][‘config’][‘interface’]
mcast_group node[‘heartbeat’][‘config’][‘mcast_group’]
mcast_ttl node[‘heartbeat’][‘config’][‘mcast_ttl’]
resources node[‘heartbeat’][‘config’][‘resource_ip’]
end

I also tried to pass “default_node” as attribute, but that doesn’t work… Can someone please advice me, what I should do? I’d appreciate any help!

Thanks and Greets