Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/vagrant/zeppelin-dev/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

## proxy settings
################################################
http_proxy = ENV.fetch('http_proxy', '')
https_proxy = ENV.fetch('https_proxy', '')
no_proxy = ENV.fetch('no_proxy', 'localhost,127.0.0.1')
proxy_on = !http_proxy.empty? and !https_proxy.empty?

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
Expand All @@ -28,6 +35,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# ubuntu/trusty64 Official Ubuntu Server 14.04 LTS (Trusty Tahr) builds
config.vm.box = "ubuntu/trusty64"

# Vagrant Plugin Configuration: vagrant-proxyconf
if Vagrant.has_plugin?("vagrant-proxyconf")
if proxy_on
# set proxy
config.proxy.http = http_proxy
config.proxy.https = https_proxy
config.proxy.no_proxy = no_proxy
end
end

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
Expand Down