-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling a source results in an endless loop of 'corrective' changes #296
Comments
Hello! 👋 This issue has been open for a while and has had no recent activity. We've labelled it with If you are waiting on a response from us we will try and address your comments on a future Community Day. Alternatively, if it is no longer relevant to you please close the issue with a comment. |
Still waiting for a response, and/or somebody to request further information or work on the problem... |
Hi @slamble, thanks for reporting this issue and sorry for the long delay in reply. We are aware of this error and have added it to our backlog. However, we don't any any estimates of when will we be able to address it. Our codebase, however, is open-source, so we always encourage our community members to participate and send us PRs that they think might improve our modules. |
@LukasAud, I had a quick look at the code and I have a reasonable idea of where the problem is and how to address it. The problem I have is that I don't have an environment that I can test a fix on - the customer in question isn't going to let me test modified code in their production environment, even if I could get the code in there; and I don't have a licensed Chocolatey installation (which may or may not be necessary to reproduce the problem.) As usual, time is the problem more than anything else. Raising the issue is as much about making sure it doesn't slip through the cracks as anything else. If I do have the opportunity and time, I'll see what I can do. I just can't make any promises, unfortunately. |
Hey @slamble. We are happy enough to keep this issue open and visible as far as it keeps being a potential problem to our users. |
@slamble I'm running into this same issue and noticed if you set the source to disabled but also set the priority to 2 puppet stops trying to correct the source (the source continues to say disabled after this change). |
Describe the Bug
I am writing code to manage a licensed Chocolatey install for a customer that has their systems locked down and unable to access the general Internet. As a result, we want to disable the Chocolatey licensed source.
When I use the code:
I get a constant stream of 'corrective' changes where Puppet tries to change the user for this source to the empty string, and its priority to 0 (originally 'customer' and 10, respectively). Obviously, these changes aren't persisting, so Puppet tries to do them every time, without success.
Adding the parameters:
within the chocolateysource code block results in the proper idempotent behaviour. (Which has then led to the security team questioning the plain text password in the code - though after I explained the reason, they were fine with it.)
Expected Behavior
Disabling a source should not result in a constant stream of corrective changes. (Note that I have not tried disabling any other source; the issue may be specific to the chocolatey.licensed source.)
Steps to Reproduce
See above.
Environment
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: