diff --git a/recipes/stonith.rb b/recipes/stonith.rb index dac3160..c5f1bb8 100644 --- a/recipes/stonith.rb +++ b/recipes/stonith.rb @@ -68,6 +68,8 @@ when "sbd" # We want to allocate slots before restarting corosync notifies :run, "execute[Allocate SBD slot]", :immediately notifies :restart, "service[#{node[:corosync][:platform][:service_name]}]", :immediately + # After restarting corosync, we need to wait for the cluster to be online again + notifies :create, "ruby_block[wait for cluster to be online]", :immediately end end