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

reboot: limit what may cause a reboot by parameter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: reboot
    • Labels:
    • Environment:

      windows 2012

    • Template:
    • Team:
      Windows
    • Sprint:
      Windows Kanban
    • QA Risk Assessment:
      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

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support