Gem sources configured with .gemrc

Referencing this thread:

http://lists.opscode.com/sympa/arc/chef/2013-12/msg00236.html

I’m having the exact same issue. Tyler, if you’re on this list, did you ever find a resolution to it? Alternatively, has anyone encountered a way to resolve it? Attempts to refresh the Gem.configuration do not work for us per:

https://docs.chef.io/resource_gem_package.html

Thanks for any help!

-Matt

This should do what you’re looking for:

Thanks,
–Charles

Charles Johnson — Product Engineer
(510) 545-9485 – charles@chef.io – my: Linkedin Twitter

CHEF

TM
chef.io Blog Facebook Twitter Youtube

On March 6, 2015 at 12:15:00 PM, Matt Juszczak (matt@atopia.net) wrote:

Referencing this thread:

http://lists.opscode.com/sympa/arc/chef/2013-12/msg00236.html

I’m having the exact same issue. Tyler, if you’re on this list, did you ever find a resolution to it? Alternatively, has anyone encountered a way to resolve it? Attempts to refresh the Gem.configuration do not work for us per:

https://docs.chef.io/resource_gem_package.html

Thanks for any help!

-Matt

It doesn't seem to work. In looking at the source, it seems to hard-code rubygems as the gem source when you specify a gem binary. Kind of confused.

On Mar 6, 2015, at 6:12 PM, Charles Johnson charles@chef.io wrote:

This should do what you're looking for:

Use a .gemrc file with Omnibus chef-client · GitHub

Thanks,
--Charles

Charles Johnson — Product Engineer
(510) 545-9485 – charles@chef.io – my: Linkedin Twitter

CHEF
CHEF.IO

TM
chef.io Blog Facebook Twitter Youtube

On March 6, 2015 at 12:15:00 PM, Matt Juszczak (matt@atopia.net) wrote:

Referencing this thread:

chef - [chef] Gem Sources configured with .gemrc

I’m having the exact same issue. Tyler, if you’re on this list, did you ever find a resolution to it? Alternatively, has anyone encountered a way to resolve it? Attempts to refresh the Gem.configuration do not work for us per:

gem_package Resource

Thanks for any help!

-Matt

Pretty certain I've seen a PR to fix that recently. If its the same
issue, its either merged or close to merged.

On 3/7/15 11:05 AM, Matt Juszczak wrote:

It doesn't seem to work. In looking at the source, it seems to
hard-code rubygems as the gem source when you specify a gem binary.
Kind of confused.

https://github.com/chef/chef/blob/6eae70225008c8b06601a8343a3f57cb10f3c065/lib/chef/provider/package/rubygems.rb#L537

On Mar 6, 2015, at 6:12 PM, Charles Johnson <charles@chef.io
mailto:charles@chef.io> wrote:

This should do what you're looking for:

Use a .gemrc file with Omnibus chef-client · GitHub

Thanks,
--Charles

Charles Johnson — Product Engineer

(510) 545-9485 tel://(510)%20545-9485charles@chef.io
mailto:charles@opscode.com – *my: *Linkedin
http://www.linkedin.com/pub/charles-johnson/1/b38/6a5 Twitter
https://twitter.com/chipadeedoodah

CHEF

CHEF.IO http://www.getchef.com/

TM

chef.io http://www.getchef.com/ Blog
http://www.opscode.com/blog/ Facebook
https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/getchefdotcom Youtube
https://www.youtube.com/getchef

On March 6, 2015 at 12:15:00 PM, Matt Juszczak (matt@atopia.net
mailto:matt@atopia.net) wrote:

Referencing this thread:

chef - [chef] Gem Sources configured with .gemrc

I’m having the exact same issue. Tyler, if you’re on this list, did
you ever find a resolution to it? Alternatively, has anyone
encountered a way to resolve it? Attempts to refresh the
Gem.configuration do not work for us per:

gem_package Resource

Thanks for any help!

-Matt

Referring to this?

On Mar 8, 2015, at 12:23 AM, Lamont Granquist lamont@chef.io wrote:

Pretty certain I've seen a PR to fix that recently. If its the same issue, its either merged or close to merged.

On 3/7/15 11:05 AM, Matt Juszczak wrote:
It doesn't seem to work. In looking at the source, it seems to hard-code rubygems as the gem source when you specify a gem binary. Kind of confused.

https://github.com/chef/chef/blob/6eae70225008c8b06601a8343a3f57cb10f3c065/lib/chef/provider/package/rubygems.rb#L537

On Mar 6, 2015, at 6:12 PM, Charles Johnson charles@chef.io wrote:

This should do what you're looking for:

Use a .gemrc file with Omnibus chef-client · GitHub

Thanks,
--Charles

Charles Johnson — Product Engineer
(510) 545-9485 – charles@chef.io – my: Linkedin Twitter

CHEF
CHEF.IO

TM
chef.io Blog Facebook Twitter Youtube

On March 6, 2015 at 12:15:00 PM, Matt Juszczak (matt@atopia.net) wrote:

Referencing this thread:

chef - [chef] Gem Sources configured with .gemrc

I’m having the exact same issue. Tyler, if you’re on this list, did you ever find a resolution to it? Alternatively, has anyone encountered a way to resolve it? Attempts to refresh the Gem.configuration do not work for us per:

gem_package Resource

Thanks for any help!

-Matt

That is the one.

On 3/8/15 11:28 AM, Matt Juszczak wrote:

Referring to this?

gem_package, chef_gem should not shell out to using https://rubygems.org by pburkholder · Pull Request #2867 · chef/chef · GitHub

On Mar 8, 2015, at 12:23 AM, Lamont Granquist <lamont@chef.io
mailto:lamont@chef.io> wrote:

Pretty certain I've seen a PR to fix that recently. If its the same
issue, its either merged or close to merged.

On 3/7/15 11:05 AM, Matt Juszczak wrote:

It doesn't seem to work. In looking at the source, it seems to
hard-code rubygems as the gem source when you specify a gem binary.
Kind of confused.

https://github.com/chef/chef/blob/6eae70225008c8b06601a8343a3f57cb10f3c065/lib/chef/provider/package/rubygems.rb#L537

On Mar 6, 2015, at 6:12 PM, Charles Johnson <charles@chef.io
mailto:charles@chef.io> wrote:

This should do what you're looking for:

Use a .gemrc file with Omnibus chef-client · GitHub

Thanks,
--Charles

Charles Johnson — Product Engineer

(510) 545-9485 tel://(510)%20545-9485charles@chef.io
mailto:charles@opscode.com – *my: *Linkedin
http://www.linkedin.com/pub/charles-johnson/1/b38/6a5 Twitter
https://twitter.com/chipadeedoodah

CHEF

CHEF.IO http://www.getchef.com/

TM

chef.io http://www.getchef.com/ Blog
http://www.opscode.com/blog/ Facebook
https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/getchefdotcom Youtube
https://www.youtube.com/getchef

On March 6, 2015 at 12:15:00 PM, Matt Juszczak (matt@atopia.net
mailto:matt@atopia.net) wrote:

Referencing this thread:

chef - [chef] Gem Sources configured with .gemrc

I’m having the exact same issue. Tyler, if you’re on this list,
did you ever find a resolution to it? Alternatively, has anyone
encountered a way to resolve it? Attempts to refresh the
Gem.configuration do not work for us per:

gem_package Resource

Thanks for any help!

-Matt

Yeah, that's on me. I hope to get to that yet this week.

On Sun, Mar 8, 2015 at 5:35 PM, Lamont Granquist lamont@chef.io wrote:

That is the one.

On 3/8/15 11:28 AM, Matt Juszczak wrote:

Referring to this?

gem_package, chef_gem should not shell out to using https://rubygems.org by pburkholder · Pull Request #2867 · chef/chef · GitHub

On Mar 8, 2015, at 12:23 AM, Lamont Granquist lamont@chef.io wrote:

Pretty certain I've seen a PR to fix that recently. If its the same
issue, its either merged or close to merged.

On 3/7/15 11:05 AM, Matt Juszczak wrote:

It doesn't seem to work. In looking at the source, it seems to hard-code
rubygems as the gem source when you specify a gem binary. Kind of confused.

https://github.com/chef/chef/blob/6eae70225008c8b06601a8343a3f57cb10f3c065/lib/chef/provider/package/rubygems.rb#L537

On Mar 6, 2015, at 6:12 PM, Charles Johnson charles@chef.io wrote:

This should do what you're looking for:

Use a .gemrc file with Omnibus chef-client · GitHub

Thanks,
--Charles

Charles Johnson — Product Engineer

(510) 545-9485 <//%28510%29%20545-9485> – charles@chef.io
charles@opscode.com – *my: *Linkedin
http://www.linkedin.com/pub/charles-johnson/1/b38/6a5 Twitter
https://twitter.com/chipadeedoodah

CHEF

CHEF.IO http://www.getchef.com/

TM

chef.io http://www.getchef.com/ Blog http://www.opscode.com/blog/
Facebook https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/getchefdotcom Youtube
https://www.youtube.com/getchef

On March 6, 2015 at 12:15:00 PM, Matt Juszczak (matt@atopia.net) wrote:

Referencing this thread:

chef - [chef] Gem Sources configured with .gemrc

I’m having the exact same issue. Tyler, if you’re on this list, did you
ever find a resolution to it? Alternatively, has anyone encountered a way
to resolve it? Attempts to refresh the Gem.configuration do not work for us
per:

gem_package Resource

Thanks for any help!

-Matt

--

Peter Burkholder — Customer Success Engineer

Unavailability: Travel March 2-3; Vacation March 16-20; ChefConf March
30-April 3

301-204-5767 – pburkholder@chef.io – *my: *Linkedin
http://www.linkedin.com/in/pburkholder Twitter
http://www.twitter.com/pburkholder Cal
https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK
endar

CHEF

CHEF.IO http://www.chef.io/

TM

chef.io http://www.chef.io/ Blog http://www.chef.io/blog/ Facebook
https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/chef Youtube https://www.youtube.com/getchef