-
Notifications
You must be signed in to change notification settings - Fork 193
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
Forcing apt-update on Debian causes hosts to be considered 'Changed' #132
Comments
May be able to change that to a subscribe. It should happen only if the repo config changes, or if a newer version is specified in the class parameters. |
Wouldn't it suffice to let the package resource require => Apt::Source['pc_repo'] on debian? |
I think there was previously an issue in how containment worked that made the refresh happen too late. I'll have to retest it. |
…lways refreshing
I worked around this in the above commit by changing the Notify resource to an Exec, allowing me to use the refreshonly param. Happy to submit as a pull request if it's an acceptable solution. |
That seems interesting, I'd love to see it. |
Also filed as MODULES-4171. |
apt::source appears to have |
I wasn't aware of it, I'll take a look. Thanks! |
Behind the scenes, it seems to just add a |
When using this module in conjunction with Puppetboard, using
notify
to enforce an apt-update causes a hosts to consider itself to have changes.See code.
The enforced apt-update seems to apply as well when the puppet agent is already at the target version.
Therefore, when using this module, every host in my environment is reporting to have applied changes every puppet run.
The text was updated successfully, but these errors were encountered: