Make Vagrant _not_ bring up certain machines by default? -


i have vagrantfile defines multiple machines. 1 of these machines used daily development, other 1 exists solely occasional integration testing.

is there way make vagrant never bring secondary machine default? when run vagrant up, i'd bring default machine defined as:

config.vm.define "centos7", primary: true |centos7| 

and never bring secondary machine defined as:

config.vm.define "centos6", primary: false |centos6| 

i know can run vagrant centos7 not bring other machine, i'd make life easier on consumers of project , not have them inadvertently start 2 vms simultaneously on machines, since second 1 irrelevant daily needs.

you can define follow

config.vm.define "centos6", autostart: false , primary: false |centos6| 

the autostart setting allows tell vagrant not start specific machines

when you'll runn vagrant "centos7" automatically start, "centos6" not start. if want run test you'll force "centos6" machine start running vagrant cents.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo