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

Make wuaserv service be idempotent

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: wsus 0.1.3
    • Fix Version/s: None
    • Component/s: wsus_client
    • Environment:

      Windows 2012 Server
      Puppet v3.7.3
      Foreman v1.8.0

    • Template:
    • Story Points:
      1
    • Sprint:
      Windows 2016-07-27

      Description

      Every time the puppet agent runs, it does this:

      • Resource:

        /Stage[main]/Wsus_client/Service[wuauserv]/ensure

      • Message:

        ensure changed 'stopped' to 'running'

      Looking at the code results in a few possibilities as to the cause for this:

      1. The Registry_value resource causes the service to refresh
        • I don't think this is the case, because if it was, then I would see a change by this resource in the report for this Puppet run
      2. The service resource in Windows doesn't allow idempotence (or maybe this is specific to the wuaserv service)
        • This seems silly (but I wouldn't put it passed Microsoft)
        • Maybe something could be added to the service resource to help the host know not to always stop/start the service
      3. A workaround may be required to check if the service is already running
        • This shouldn't be required as that's the job of the service resource (but just noting it here to share my thoughts)

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  rob Rob Reynolds
                  Reporter:
                  dandunckelman Dan Dunckel
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: