-
Notifications
You must be signed in to change notification settings - Fork 79
dsc_registry generates notify event for every time puppet agent launches #237
Comments
Running puppet in debug mode shows that each run, the TEST function for the Since the |
Got it, will do. |
@jpogran According to PowerShell/DscResources#203 - if I undestood it correctly, this bug was fixed in current xPSDesiredStateConfiguration module. |
@jpogran
|
@marcinbojko With regard to PowerShell/DscResources#203, they are saying that the I did look at the whole output. Note in the output below (which is shortened for length, I only cut out parts that were not relevant) you can see that we do two operations.
You can see above that we sent a TEST operation to DSC, in order to determine if the state of the server matches the state we expect. We pass all the information laid out in the manifest and tell DSC to check the value
Here we can see that DSC returns $false, indicating that the system does not match the desired state. This tells Puppet to apply the manifest to the system and effect the change.
After Puppet tells DSC to change the state by sending it a SET operation, DSC runs and returns a $true value indicating that it completed successfully and that the system is in the desired state. So, in summary the DSC Resource is incorrectly reporting system state. |
@jpogran Thanks for the perfect explanation! |
Closing this out, as there is a workaround to use the xRegistry DSC Resource until the Registry DSC Resource has the correct fix. |
Setting any value in registry returns notify every time agent launches:
Notice generated only once or with dsc_force=true
Example:
The text was updated successfully, but these errors were encountered: