[chef] Re: Re: using database cookbook behind a proxy (require 'pg')


Chronological Thread 
  • From: Marco Betti < >
  • To:
  • Subject: [chef] Re: Re: using database cookbook behind a proxy (require 'pg')
  • Date: Fri, 24 May 2013 18:56:56 +0200

problem solved using Ruby’s predefined ENV variable to set the environment variable http_proxy (well understood by gem install) in a wrapper recipe that calls:

ENV['HTTP_PROXY'] = "myproxy"
include_recipe "postgresql::ruby"


Marco



On Thu, May 23, 2013 at 7:38 PM, Marco Betti < " target="_blank"> > wrote:
Thanks for the advice, but it still doesn't work also setting both /opt/chef/embedded and ~root/.gemrc

Yes, it is an omnibus installation.

This is a big problem for us... is there any other organization using database cookbook with proxy for http/s connection?

Regards,
Marco


On Tue, May 7, 2013 at 1:47 AM, Brian Akins < " target="_blank"> > wrote:

You using omnibus chef-client? gemrc should work, you just have to put in a different file - /opt/chef/embedded/etc/gemrc maybe? ~root/.gemrc may work as well.









Archive powered by MHonArc 2.6.16.

§