Issue #2061 has been updated by Noah Cantor.
Actually, gem clean won't work, as it only removes old gems, leaving the most recent. It doesn't accept version information, or any arguments that would allow you to remove the latest version and use an older one. So far, there seem to be 2 solutions: 1. Don't install new gems. Always (100% of the time), install old versions of gems and upgrade them as necessary, never allowing a system to do a simple gem install 2. Write a clunky exec script to remove the versions of gems that you don't want. My example scenario is simple, but it doesn't look like it's been spelled out anywhere, so I'll do it here: 1. Boot server using automated scripts on EC2 2. Install puppet gem (2.7.1) 3. Connect server to puppet master 4. Puppet master tells it to install an older version of puppet (2.6.8) 5. Older gem is installed 6. Puppet refreshes 7. Running version of puppet is 2.7.1, despite puppet attempting to tell the system to ensure that 2.6.8 is installed. 8. Every time puppet checks in, it will reinstall 2.6.8, since 2.7.1 is running. ---------------------------------------- Bug #2061: uninstall specific packages that are versionable https://projects.puppetlabs.com/issues/2061 Author: Lawrence Ludwig Status: Accepted Priority: Normal Assignee: Category: package Target version: unplanned Affected Puppet version: 0.24.7 Keywords: Branch: While you can install specific versions via the 'ensure' option, you cannot uninstall (remove) specific packages. Use case with Hudson issue: Ruby's rake gem 0.8.4 was buggy with Hudson and had to downgrade to 0.8.3. While I can specify to install 0.8.3 via Puppet, I could not make sure 0.8.4 was removed via puppet. Both versions existed. The current workaround is using exec hack. -- 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 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.
