Skip to content

Commit

Permalink
Merge pull request #100 from fullyint/missing-vagrant-plugins
Browse files Browse the repository at this point in the history
Accommodate missing plugins in kitchen_vagrant_block.rb
  • Loading branch information
rndmh3ro committed Mar 14, 2017
2 parents fc42747 + a11322a commit 490be55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .kitchen.vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ provisioner:
transport:
max_ssh_sessions: 5

transport:
max_ssh_sessions: 5


platforms:
- name: ubuntu-12.04
driver_config:
Expand Down
14 changes: 9 additions & 5 deletions kitchen_vagrant_block.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# This is a Vagrant block to allow proxy settings to be carried into Kitchen
# You need this for all of yum/apt etc. to work!
unless ENV['http_proxy'].empty? || Vagrant.has_plugin?("vagrant-proxyconf")
unless ENV['http_proxy'].nil? || Vagrant.has_plugin?("vagrant-proxyconf")
raise "Missing required plugin 'vagrant-proxyconf' to support HTTP(S) proxies, run `vagrant plugin install vagrant-proxyconf`"
end

Vagrant.configure(2) do |config|
config.proxy.http = "#{ENV['http_proxy']}"
config.proxy.https = "#{ENV['https_proxy']}"
config.proxy.no_proxy = "localhost,127.0.0.1"
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "#{ENV['http_proxy']}"
config.proxy.https = "#{ENV['https_proxy']}"
config.proxy.no_proxy = "localhost,127.0.0.1"
end

# You may have vagrant-vbguest plugin installed to keep your images up to date
# - but will probably have VBoxAddition build issues with the foreign boxes listed in .kitchen.vagrant.yml
config.vbguest.auto_update = false
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
end

0 comments on commit 490be55

Please sign in to comment.