Hi, I'm just starting out with Vagrant and I have a question re: supporting
multiple providers in a single Vagrantfile.
We have a mix of Windows/Mac/Linux developers, and I'd like to be able to
`vagrant up` local VMs (via virtualbox, for the devs with Windows/Mac),
remote VMs (via vagrant-aws for demo'ing/testing remotely) and local
containers (via docker, for the devs with linux workstations).
Is this possible/practical with Vagrant? This is the minimal Vagrantfile I
have so far:
https://gist.github.com/anonymous/b17afeb8fc1050d4faab
Because vagrant-aws requires a "dummy" box, and the Docker provider
requires no box, I used what feels like a horrible hack with the the case
statement for ARGV[2].
It works, but I feel like there's a proper way to make this generic (or
make the conf entirely provider-specific?) but I'm missing it. Or possibly
I've misunderstood something fundamental about what Vagrant offers.
Can anyone point me in the right direction please?
Regards,
Ben.
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/8af246ce-717b-4626-989c-5d35cfe6a6ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.