Issue #14660 has been updated by James Turnbull.

Status changed from Needs More Information to In Topic Branch Pending Review
Assignee deleted (James Turnbull)
Target version set to 2.7.x
Branch set to https://github.com/puppetlabs/puppet/pull/809


----------------------------------------
Bug #14660: package provider gem does not use the specified source if ensure => 
latest
https://projects.puppetlabs.com/issues/14660#change-63561

Author: Evgeny Dudin
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: package
Target version: 2.7.x
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