Often times, Windows needs to be rebooted to update system settings that have been changed during the course of an installation or reconfiguration. The windows
cookbook provides the windows_reboot
resource to notify WindowsRebootHandler
that a reboot is required. If WindowsRebootHandler
is registered as a report handler, a reboot will be requested upon a complete and successful execution of the Chef client.
Typically, this resource is notified by other resource blocks when a reboot is required, often after installing new software or changing system settings.
Your recipe will need to make sure that the reboot handler is included with the following command:
include_recipe 'windows::reboot_handler'
The following table outlines the actions and parameters that can be associated with the windows_reboot
resource: