Provides a very simple way to trigger a reboot at the end of a chef run fron a cookbook run using chef_handler.
node[:reboot][:auto_reboot]
defaults to 0. Override or set to 1 if you want a node to auto reboot when the recipe is included.
Add recipe[reboot]
to your runlist. Set node[:reboot][:auto_reboot] = 1
to trigger a reboot at the end of the run.