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

Make wuaserv service be idempotent

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • wsus 0.1.3
    • None
    • wsus_client
    • Windows 2012 Server
      Puppet v3.7.3
      Foreman v1.8.0

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support