Skip to content

Commit

Permalink
Add proxyconf settings
Browse files Browse the repository at this point in the history
  • Loading branch information
amplifi committed Mar 6, 2017
1 parent bee9d34 commit dfab801
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
if Vagrant.has_plugin?("vagrant-proxyconf")
if ENV["http_proxy"]
puts "http_proxy: " + ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
puts "https_proxy: " + ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end

config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8000, host: 8000

Expand All @@ -11,7 +25,7 @@ Vagrant.configure(2) do |config|
end

config.vm.provision "ansible" do |ansible|
# ansible.verbose = "vvv"
# ansible.verbose = "vvv"
ansible.playbook = "provision/vagrant.yml"
end

Expand Down

0 comments on commit dfab801

Please sign in to comment.