From f22cccb74185c0502b167f71b40f4ea7703b42ac Mon Sep 17 00:00:00 2001 From: Paulo Bittencourt Date: Mon, 17 Mar 2014 21:13:41 -0400 Subject: [PATCH] allow overriding vagrant box in test Vagrantfile via ENV variable --- test/Vagrantfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/Vagrantfile b/test/Vagrantfile index ecaa38c..24683e6 100644 --- a/test/Vagrantfile +++ b/test/Vagrantfile @@ -6,8 +6,13 @@ if Gem::Version.new(::Vagrant::VERSION) < Gem::Version.new('1.5') end Vagrant.configure('2') do |config| - config.vm.box = 'precise64' - config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box' + + if ENV.key? 'VAGRANT_BOX' + config.vm.box = ENV['VAGRANT_BOX'] + else + config.vm.box = 'precise64' + config.vm.box_url = 'http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-vagrant-amd64-disk1.box' + end config.hostmanager.enabled = true config.hostmanager.manage_host = true