Issue #20015 has been updated by eric sorenson. Status changed from Unreviewed to Accepted Target version set to 3.x
The gem provider appears to be brain-dead in the respect that it always prefers the version listed on `gem list --remote gemname` and does not actually compare the versions at all when you say `ensure => latest`. This is indeed quite dumb. There's a straightforward workaround by using `ensure => x.y.z` to pick a specific version, but the provider should indeed be made smarter. Marking this bug accepted and targeting for a fix in the 3.x series. ---------------------------------------- Bug #20015: package => latest tries to downgrade package https://projects.puppetlabs.com/issues/20015#change-90773 * Author: Luke M * Status: Accepted * Priority: Normal * Assignee: * Category: * Target version: 3.x * Affected Puppet version: 2.7.21 * Keywords: * Branch: ---------------------------------------- It appears that when specifying 'latest' this means the latest just in the repo even if the server itself has a newer version. I would expect that 'latest' would mean the newest version available regardless of the source. In our manifest: package{'facter': ensure => latest, provider => 'gem', } What is installed locally: # gem list facter *** LOCAL GEMS *** facter (1.6.18) What the repo has: # gem list -r facter *** REMOTE GEMS *** facter (1.6.17) What puppet tries to do: notice: /Stage[main]/Puppet::Client::Hpux/Package[facter]/ensure: ensure changed '1.6.18' to '1.6.17' -- 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://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
