Details
Description
There are a number of reasons why the reboot module might reboot a server on windows. From the code
def reboot_pending?
|
# http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542
|
|
reboot_required ||
|
component_based_servicing? ||
|
windows_auto_update? ||
|
pending_file_rename_operations? ||
|
package_installer? ||
|
package_installer_syswow64? ||
|
pending_computer_rename? ||
|
pending_dsc_reboot? ||
|
pending_ccm_reboot?
|
end
|
It would be handy to be able to pick the reason for the reboot perhaps something like
reboot { 'installed software':
|
reason => ['software']
|
}
|
This would then only reboot if a piece of software has been installed but not due to say a windows update.
Attachments
Issue Links
- blocks
-
MODULES-4330 dsc: Update with better reboot support
-
- Closed
-