Issue #18427 has been updated by Pedro CĂ´rte-Real.

I've hit this issue with nothing but the default rubygems repository. Here's a 
minimal puppet script that causes the issue:

    package {'nokogiri':
      provider => 'gem',
      ensure => 'latest',
    }

The output from this is the same every time:

    $ sudo puppet apply puppet-gem-bug.pp 
    Notice: /Stage[main]//Package[nokogiri]/ensure: ensure changed '["1.5.9"]' 
to '1.5.9 ruby java x86-mingw32 x86-mswin32-60'
    Notice: Finished catalog run in 9.97 seconds

I'm running the latest puppet from apt.puppetlabs.com and the latest rubygems 
from ruby 1.9 in ubuntu precise.

    $ puppet --version
    3.1.1
    $ gem -v
    1.8.11

I believe the extra stuff after the version number are the platforms that the 
gem supports. This is common in gems that have native extensions. The 
workaround should probably be to do a split by "," to get the various versions 
and then do a split by " " and take the first to get the actual version number.



----------------------------------------
Bug #18427: gem package provider updates gems even if the gem is already at the 
latest revision
https://projects.puppetlabs.com/issues/18427#change-91162

* Author: Luke M
* Status: Investigating
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: package
* Target version: 
* Affected Puppet version: 2.7.20
* Keywords: gem server
* Branch: 
----------------------------------------
Using: 

    package{'facter':
      ensure          => latest,
      provider        => 'gem',
      source          => "http://puppet:8808";,
    }

Produces:


    notice: /Stage[main]/Common_puppet::Hpux/Package[facter]/ensure: ensure 
changed '1.6.17' to '1.6.17 ruby'

This happens on every puppet run. 



-- 
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.


Reply via email to