Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-4328

reboot: limit what may cause a reboot by parameter

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • reboot
    • windows 2012

    • Windows
    • Windows Kanban
    • Needs Assessment

    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

          Activity

            People

              glenn.sarti Glenn Sarti
              johnf John Ferlito
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support