Issue #14660 has been updated by Andrew Parker.

Target version deleted (2.7.x)

As the 2.7.x line is winding down, I am removing the target at 2.7.x from 
tickets in the system. The 2.7 line should only receive fixes for major 
problems (crashes, for instance) or security problems.
----------------------------------------
Bug #14660: package provider gem does not use the specified source if ensure => 
latest
https://projects.puppetlabs.com/issues/14660#change-80533

Author: Evgeny Dudin
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: package
Target version: 
Affected Puppet version: 2.7.14
Keywords: gem,latest,source
Branch: https://github.com/puppetlabs/puppet/pull/809


I have a local gem repository where I put my gems. In the manifest I specify a 
package with ensure => latest and explicitly set the source
<pre>
class trocla {
    package { "moneta":
        ensure      => "latest",
        provider    => "gem",
        source      => "http://mylocalrepo/gem-repository/";,
    }
}
</pre>
In spite of that, puppet does not use my repo to fetch the list of available 
gems (which is confusing - if I explicitly specify my custom repository, I 
expect this package to be pulled from this particular repository).

This can be seen in the output puppet with --debug option:
`debug: Puppet::Type::Package::ProviderGem: Executing '/usr/bin/gem list 
--remote moneta$'`
  As you can see --source option is missing here



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

Reply via email to