Hi Anthony,

answering directly because this is a gist of mine you are referring to :)

This is just one way to do it, I would say. It depends on your
specific needs whether this is a good way or if there are other ways
that suit you better.

The idea was that you fire up only one VM at a time though, e.g.:
 * `vagrant up sample-app-vbox --provider=virtualbox`
 * `vagrant up sample-app-aws --provider=aws`
 * ...

For example, I used the above gist in one project, and in another
project I am now using 3 different Multi-VM Vagrantfiles (one for
local development with VirtualBox, one for our CI server with LXC, and
one for staging / prod with Azure). The provider configuration is so
vastly different that it's cleaner to have them in separate
Vagrantfiles (and it won't bring up the wrong VM if you accidentally
run `vagrant up` without a vm name).

Eager to hear what others say, too.

Cheers,
Torben




On Tue, Jan 27, 2015 at 9:21 PM, Anthony Kong <[email protected]> wrote:
> Hi,
>
> Currently each 'vagrant up' allows creation of boxes for a single provider
> only. i.e. if I have vagrant up for vbox, I cannot vagrant up for aws unless
> I destroy the vbox instances first. I suppose it is still the case for
> vagrant 1.7?
>
> I want to be able to a finer grain control over this. After some search I
> have found this solution:
>
> https://gist.github.com/tknerr/5753319
>
> It will let a Vagrant file to create boxes for three different environment
> in one go.
>
> Before I use this Vagrantfile, I want to get some feedback from the list:
> Does this Vagrantfile get it right? Is there a better way?
>
> A follow-up question: the Vagrantfile will fire up three boxes at the same
> time. How can I control which one to start via command line option?
>
> Thanks, Tony
>
>
>
>
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to