Hi, I've been trying to figure out if there is a way to define a group of 
vms within a Vagrantfile in such a way that I could call vagrant up <group 
name> and bring up the specified group of vms

For example I tried something similar to the following:
config.vm.define 'foobar-group' do |foobar|
  foobar.vm.define 'foo' do |foo|
    foo.vm.hostname = 'foo'
    ...
  end
  foobar.vm.define 'bar' do |bar|
    bar.vm.hostname = 'bar'
    ...
  end
end

config.vm.define 'stuff-group' do |stuff|
  stuff.vm.define 'some-stuff' do |something|
    something.vm.hostname = 'something'
    ...
  end
  ...
end

Basically I was hoping I'd be able to call vagrant up foobar-group and get 
only the vms in that group to come up, however this does not work at all.

Is there a way to do this other than using some sort of naming convention 
and a pattern with vagrant up?

-- 
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