hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.23k stars 4.43k forks source link

vagrant should have a built-in list of known boxes for common OSs #1709

Closed anuaimi closed 11 years ago

anuaimi commented 11 years ago

Vagrant should know about official boxes without each user having to specify the URL. As an example, all the official Ubuntu boxes from Canonical. So rather than each user having to specify the URL to Canonical's site, they just box to be something like 'precise32' and Vagrant knows where to get that from.

Right now I add the following to all my Vagrantfiles. Since these are all official boxes, I should have to.

BOX_BASE="http://cloud-images.ubuntu.com/vagrant" PRECISE32_URL="${BASE_BOX}/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box" PRECISE64_URL="${BASE_BOX}/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box" QUANTAL32_URL="${BASE_BOX}/quantal/current/quantal-server-cloudimg-i386-vagrant-disk1.box" QUANTAL64_URL="${BASE_BOX}/quantal/current/quantal-server-cloudimg-amd64-vagrant-disk1.box" RARING32_URL="${BASE_BOX}/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box" RARING64_URL="${BASE_BOX}/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box" SAUCY32_URL="${BASE_BOX}/saucy/current/saucy-server-cloudimg-i386-vagrant-disk1.box" SAUCY64_URL="${BASE_BOX}/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"

config.vm.box = "precise64" config.vm.box_url = PRECISE64_URL

The same thing could be done for CentOS or RedHat if there are official Vagrant boxes from those OS providers.

mitchellh commented 11 years ago

It would certainly be nice to do this, but it gets tricky because this is only for VirtualBox. What about VMware? What about AWS? etc. I'm working on a solution to this problem.