Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force proxy off for metadata queries #64

Merged
merged 2 commits into from Aug 8, 2014
Merged

force proxy off for metadata queries #64

merged 2 commits into from Aug 8, 2014

Conversation

namtzigla
Copy link
Contributor

force proxy off for all metadata queries

@namtzigla
Copy link
Contributor Author

if you have the following client.rb file:

chef_server_url "https://xxxx.net"
validation_client_name "chef-validator"
http_proxy "http://1.1.1.1:3128"
https_proxy "http://1.1.1.1:3128"
no_proxy "1.*,*.net,169.254.*"
node_name "nfs1.aws.eu"

# set the proxy env variable so rubygems works correctly
ENV['http_proxy'] = "http://1.1.1.1:3128"
ENV['HTTP_PROXY'] = "http://1.1.1.1:3128"
ENV['https_proxy'] = "http://1.1.1.1:3128"
ENV['HTTPS_PROXY'] = "http://1.1.1.1:3128"

no_proxy option is ignored by the recipe, so for all the metadata queries from libraries/ec2.rb I've added :proxy => false option. I belive this is an important option especially for aws vpc environments where you must have a proxy setup.

@namtzigla
Copy link
Contributor Author

@someara can you take a look at this please ? it's a simple patch that I think is useful !

@namtzigla
Copy link
Contributor Author

@someara, can you please take a look over this patch ?

someara pushed a commit that referenced this pull request Aug 8, 2014
force proxy off for metadata queries
@someara someara merged commit f2b5f05 into sous-chefs:master Aug 8, 2014
@namtzigla
Copy link
Contributor Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants