Skip to content

Instantly share code, notes, and snippets.

@gsfjohnson
Last active October 2, 2015 23:34
Show Gist options
  • Save gsfjohnson/aac224766bd29673e5f7 to your computer and use it in GitHub Desktop.
Save gsfjohnson/aac224766bd29673e5f7 to your computer and use it in GitHub Desktop.
# vagrant plugin install vagrant-proxyconf
Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
if ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
puts "http_proxy: " + config.proxy.http
end
if ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
puts "https_proxy: " + config.proxy.https
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
puts "no_proxy: " + config.proxy.no_proxy
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment