Commit 5f3fc192 authored by Reimar Stier's avatar Reimar Stier

Update optional proxy configuration to vagrant file

parent e12c0f59
......@@ -22,14 +22,15 @@ Vagrant.configure("2") do |config|
config.vm.network "private_network", ip: "192.168.200.4", adapter: 2
config.vm.hostname = "devbox.devops.detss.corpintra.net"
# proxy
# proxy configuration
if ENV.key?("http_proxy")
# requires additional vagrant plugin vagrant-proxyconf
config.proxy.http = ENV["http_proxy"]
config.proxy.https = ENV["https_proxy"]
# config.proxy.no_proxy = "localhost,127.0.0.1"
config.proxy.no_proxy = ENV["no_proxy"]
end
# requires additional vagrant plugin
# requires additional vagrant plugin vagrant-disksize
config.disksize.size = "20GB"
# configure VM settings and additional disks
......
#!/bin/sh
export http_proxy=http://192.168.200.1:3128
export https_proxy="$http_proxy"
export no_proxy="localhost,127.0.0.1,192.168.200.0/24"
export VAGRANT_HTTP_PROXY="$http_proxy"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment