Downgrading RubyGems using Package provider => gem

281 views
Skip to first unread message

Ryan Conway

unread,
Jul 8, 2011, 6:55:02 AM7/8/11
to Puppet Users
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

Martin Willemsma

unread,
Jul 8, 2011, 11:47:29 AM7/8/11
to puppet...@googlegroups.com
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....@forward.co.uk>:

> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>

Nigel Kersten

unread,
Jul 9, 2011, 3:12:59 PM7/9/11
to puppet...@googlegroups.com
On Fri, Jul 8, 2011 at 8:47 AM, Martin Willemsma <mwill...@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.


 

Reply all
Reply to author
Forward
0 new messages