-
Notifications
You must be signed in to change notification settings - Fork 29
Idempotency Issues #26
Comments
* Stops makecache or apt-get update running every time, breaking idempotency when you don't require a cache update * false by default, as it would be a breaking change for people who use the workflow of updating a package in CloudPackage and wanting it available on next Puppet run * Fixes computology#26
* Stops makecache or apt-get update running every time, breaking idempotency when you don't require a cache update * false by default, as it would be a breaking change for people who use the workflow of updating a package in CloudPackage and wanting it available on next Puppet run * Fixes computology#26
* Stops makecache or apt-get update running every time, breaking idempotency when you don't require a cache update * false by default, as it would be a breaking change for people who use the workflow of updating a package in CloudPackage and wanting it available on next Puppet run * Fixes computology#26
Your solution looks good but I would vote to flip the default behaviour, even if that means bumping the major version number. Puppet modules should be idempotent by default and not cause unnecessary resource changes or noise in the reports. So People frequently deploying updated packages through Packagecloud could set it to Even then, dashboards like Puppetboard and Foreman will keep showing each package list update as a change on each Puppet run whether a package is updated or not, leading to a lot of 'noise'. This happens because it's logged at "notice" level. To eliminate these updates from reports, you could set the |
@Yggdrasil Agreed, but I'd rather get the basic behaviour in first, then bump the major and flip the default to be idempotent. |
@nethsix Apologies for tagging you out out the blue. You appear to be a person that made a recent change in the computology Github organization (to repo packagecloud-github-action). Many repos here appear to be quite stale, but some are still used, like this one. Do you have any suggestions on how to get things going again? |
Hey @siebrand |
@nethsix Many thanks for your quick reply! This module hasn't been touched in over 6 years. In the meantime, the world went on. New versions of libraries (see pull requests by dependabot), new versions of Puppet(server); the current is 7, and this module officially supports 3, while even puppet 5 is out of support already. Next to that, there is an idempotency issue and an issue with keys. The latter two are the main reason for people to fork and adjust, I think. The general maintenance might take a couple of hours, too. |
Caveats
Possible improvements
$always_update_cache
parameter, turned on by default (as to not break this behaviour for people updating the module) that makes it so that the apt-get update and theyum makecache
(Suggested by @spuder in Fixing repeated node changes on yumcache by making this a refreshonly #12)refreshonly
parameter$always_update_cache
to only run the cache updates if true.The text was updated successfully, but these errors were encountered: