Issue #1625 has been updated by jamtur01.
I agree. I don't like 2. above at all. In general and overall and other long-winded muttered I think providers should behave as the tools would on the OS - otherwise you reset people's expectations and cause issues - Puppet shouldn't do anything that deviates from the normal behaviour of the OS. Now a patch that provided some form of "optional" apt-get update perhaps might be a "feature"? ---------------------------------------- Bug #1625: package providers should be consistent in retrieval of package headers http://projects.reductivelabs.com/issues/show/1625 Author: ohookins Status: Needs design decision Priority: Normal Assigned to: Category: Target version: Complexity: Unknown Affected version: 0.24.5 Keywords: I've just sent an email to the mailing list for discussion but here's a brief summary. Package managers such as yum and up2date inherently update the package headers from configured repositories as part of any command run by Puppet. Apt-get on Debian will only update package headers if you specify "apt-get update" explicitly (which is not currently done). Therefore there is an inconsistency in package providers in that Debian/Ubuntu require you to exec/schedule an "apt-get update" independently to any package resources whereas header updating is automatic for other package managers (I can't vouch for anything but yum/up2date since those are the only alternatives we use). Two options in my mind: 1. Add "apt-get update" to the debian package provider to be run before any other commands that query the local header cache 2. Fix all other package providers to NOT automatically update headers with their respective commands (if this is even possible) and provide a mechanism for specifying if headers are to be updated or not (up to the user). Either way, we need to ensure that the underlying package manager does not dictate that platform-specific hacks need to be used. ---------------------------------------- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
