Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
wsus 0.1.3
-
None
-
Windows 2012 Server
Puppet v3.7.3
Foreman v1.8.0
-
1
-
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:
- 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
- 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
- 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)