This repository was archived by the owner on Dec 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ provisioner:
2323transport :
2424 max_ssh_sessions : 5
2525
26- transport :
27- max_ssh_sessions : 5
28-
29-
3026platforms :
3127- name : ubuntu-12.04
3228 driver_config :
Original file line number Diff line number Diff line change 11# This is a Vagrant block to allow proxy settings to be carried into Kitchen
22# You need this for all of yum/apt etc. to work!
3- unless ENV [ 'http_proxy' ] . empty ? || Vagrant . has_plugin? ( "vagrant-proxyconf" )
3+ unless ENV [ 'http_proxy' ] . nil ? || Vagrant . has_plugin? ( "vagrant-proxyconf" )
44 raise "Missing required plugin 'vagrant-proxyconf' to support HTTP(S) proxies, run `vagrant plugin install vagrant-proxyconf`"
55end
66
77Vagrant . configure ( 2 ) do |config |
8- config . proxy . http = "#{ ENV [ 'http_proxy' ] } "
9- config . proxy . https = "#{ ENV [ 'https_proxy' ] } "
10- config . proxy . no_proxy = "localhost,127.0.0.1"
8+ if Vagrant . has_plugin? ( "vagrant-proxyconf" )
9+ config . proxy . http = "#{ ENV [ 'http_proxy' ] } "
10+ config . proxy . https = "#{ ENV [ 'https_proxy' ] } "
11+ config . proxy . no_proxy = "localhost,127.0.0.1"
12+ end
1113
1214 # You may have vagrant-vbguest plugin installed to keep your images up to date
1315 # - but will probably have VBoxAddition build issues with the foreign boxes listed in .kitchen.vagrant.yml
14- config . vbguest . auto_update = false
16+ if Vagrant . has_plugin? ( "vagrant-vbguest" )
17+ config . vbguest . auto_update = false
18+ end
1519end
You can’t perform that action at this time.
0 commit comments