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

Docs suggestion- reference ENV["http_proxy"] #111

Closed
jpvlsmv opened this issue Mar 16, 2015 · 1 comment
Closed

Docs suggestion- reference ENV["http_proxy"] #111

jpvlsmv opened this issue Mar 16, 2015 · 1 comment

Comments

@jpvlsmv
Copy link

jpvlsmv commented Mar 16, 2015

I have a suggestion for the documentation.

Since my system sits behind a proxy, all the Vagrant guests I spin up must have the proxy setting configured (and some system magic occasionally changes the env variables if I move around)

I add to my ~/.vagrant.d/Vagrantfile the following:

Vagrant.configure("2") do |config|
# Set up HTTP proxy based on environment
  if Vagrant.has_plugin?("vagrant-proxyconf")
    config.proxy.http     = ENV["http_proxy"]
    config.proxy.https    = ENV["https_proxy"]
  end
end
@codylane
Copy link
Collaborator

Very clever idea, however, I feel like folks will forget that they configured this and may cause problems for people down the road.

To make things portable, I'd highly recommend putting this in all your Vagrantfiles.

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

No branches or pull requests

2 participants