Ryan Conway
2011-Jul-08 10:55 UTC
[Puppet Users] Downgrading RubyGems using Package provider => gem
Hey everyone, I''m experiencing an issue resulting from the way RubyGems works when dealing with multiple gem versions. When managing a gem through the Package provider, setting ensure to a version lower than a currently installed version will result in Puppet installing the older version, however RubyGems will also keep the newer version, and this newer version will remain the default. The issue was actually reported a couple of years ago, so I''ve updated the original ticket: http://projects.puppetlabs.com/issues/2061 I would like to see the Package provider have an option to remove other versions of a gem it is managing, so that only the version you specify remains. Has anyone else experienced this issue, or have any thoughts? Thanks, Ryan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Martin Willemsma
2011-Jul-08 15:47 UTC
Re: [Puppet Users] Downgrading RubyGems using Package provider => gem
Hi Ryan, I experience the same. I''m using gem provider to manage puppet and facter installed versions. When I recently upgraded a selection of nodes to 2.7.1 I saw other not being removed like the way apt is doing. I would like to see what you purpose. Ensure => 2.7.1 also removes 2.6.8, 2.6.4 --- Martin 2011/7/8 Ryan Conway <ryan.conway@forward.co.uk>:> Hey everyone, > > I''m experiencing an issue resulting from the way RubyGems works when > dealing with multiple gem versions. > > When managing a gem through the Package provider, setting ensure to a > version lower than a currently installed version will result in Puppet > installing the older version, however RubyGems will also keep the > newer version, and this newer version will remain the default. > > The issue was actually reported a couple of years ago, so I''ve updated > the original ticket: > > http://projects.puppetlabs.com/issues/2061 > > I would like to see the Package provider have an option to remove > other versions of a gem it is managing, so that only the version you > specify remains. > > Has anyone else experienced this issue, or have any thoughts? > > Thanks, > Ryan > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nigel Kersten
2011-Jul-09 19:12 UTC
Re: [Puppet Users] Downgrading RubyGems using Package provider => gem
On Fri, Jul 8, 2011 at 8:47 AM, Martin Willemsma <mwillemsma@gmail.com>wrote:> Hi Ryan, > > I experience the same. I''m using gem provider to manage puppet and > facter installed versions. When I recently upgraded a selection of > nodes to 2.7.1 I saw other not being removed like the way apt is > doing. > > I would like to see what you purpose. Ensure => 2.7.1 also removes 2.6.8, > 2.6.4 > >This is how gems work though. When you install a new version, it doesn''t automatically remove the old one like apt does. I''d set up a ''gem cleanup'' exec if you want to get rid of them. http://docs.rubygems.org/read/chapter/10 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.