On Thursday, August 30, 2012 at 12:03 PM, Bryan McLellan wrote:
On Thu, Aug 30, 2012 at 5:31 AM, < "> > wrote:Just started to work with recipies . How to define server's reboot ?This is a terrible abuse of resources due to the lack of being able totrigger a notification as a first class object, but this works fortriggering a reboot toward the end of the run. There is not a way tocontrol the order of the delayed notifications though, so if you havenotifications that are important this might run before them. Usuallydelayed notifications are for services though, and since you'rerebooting anyway, that shouldn't be a problem.execute "reboot" docommand "reboot"action :nothingendruby_block "trigger delayed reboot" doblock { true }notifies :run, "execute[reboot]", :delayedend
Archive powered by MHonArc 2.6.16.