Browse Source

Allow reuse of existing vagrant boxes by env variables

Usage:

    BOX_NAME=precise64 vagrant up
Dr Nic Williams 12 years ago
parent
commit
04f41ebdbc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Vagrantfile

+ 2 - 2
Vagrantfile

@@ -1,8 +1,8 @@
 # -*- mode: ruby -*-
 # vi: set ft=ruby :
 
-BOX_NAME = "ubuntu"
-BOX_URI = "http://files.vagrantup.com/precise64.box"
+BOX_NAME = ENV['BOX_NAME'] || "ubuntu"
+BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64.box"
 PPA_KEY = "E61D797F63561DC6"
 
 Vagrant::Config.run do |config|