Step 4 is proving to be elusive. The post processor gives me (when I manually unpackage teh boxes) a Vagrantfile with provider specific settings and the metadata.json file (that is generated).
What I would like to do is combine these two boxes into one uber box to distribute. I can manually add both boxes with the same name and launch vagrant init BOX_NAME then vagrant up --provider=PROVIDER_NAME successfully but I'd love to put both provider configs in the same Vagrantfile. So, here's the questions I have:
A) Can one .box have one Vagrantfile with mutilple providers?
B) If so, how is the metadata.json file structured to handle both provisioners?
C) If so, for Vagrant 1.5, how does the box metadata (for versioning) look in multi-provider?
OR
Do I just make two different boxes, modify their Vagrantfiles to add more config info, and just continue with adding them with the same name but different --provider flags?
alvaros-mini:~ alvarom$ vagrant box add hashicorp/precise64
==> box: Loading metadata for box 'hashicorp/precise64'
box: URL: https://vagrantcloud.com/hashicorp/precise64
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.
1) hyperv
2) virtualbox
3) vmware_fusion
Enter your choice:
--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
config.vm.box = "name"
if you have the box in a internal server, you can distribute the Vagrantfile, and include
config.vm.box = "name"
config.vm.box_url = "http://server/path/name.box"