In a Chef recipe, I need to perform a reboot on a Node after doing some actions, and after the reboot is done, I need to continue doing another actions:
Recipe: -action 1 -action 2 -reboot -action3 -action4....
I have checked some existing cookbook in the community: reboot-handler, chef-reboot, chef-restart, chef-dominous, but I cannot make any of them work.
Is there some method in Chef to get what I need? Please provide detailed examples.
Thanks a lot for the help.
I have done it using FLAG file method, example given below. Example of domain join-
How about using chef tags to implement a series of state transitions? This approach can be combined this with reboot-handler cookbook to manage the actual reboots.
Example
default.rb
action1.rb
action2.rb