HomePhorge

(#2279) Handle providers with multiple installed versions - ruby gems
e415daa44d80Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#2279) Handle providers with multiple installed versions - ruby gems

Ruby gems can have multiple versions installed, and the current
implementation of the gem provider only reads the very latest installed
version when self.instances is called. This leads to Puppet potentially
reinstalling the gem on every run if the Puppet manifest specifies a gem
that *is* installed, but is not the latest version installed.

This does require a change to how the package type checks if ensure is
insync? to handle multiple versions for the 'is' ensure value, but the
change is backward compatible with the providers that specify single
versions.

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe56dd9af8570: (#2279) Convert package specs to not use mocks
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPUe415daa44d80: (#2279) Handle providers with multiple installed versions - ruby gems (authored by Matt Robinson <matt@puppetlabs.com>).Jan 24 2012, 8:01 AM