Dependency between vm's in development

18 views
Skip to first unread message

Sean Farrow

unread,
Sep 15, 2016, 5:31:30 AM9/15/16
to vagra...@googlegroups.com

Hi all,

 

Within a local environment I have a windows vm, created with packer that depends on a Linux vm running Redis to function.

Is there a way of telling vagrant that one vm depends on another?

How have others solved the problem. In production this is fine, as we are using Terraform and this will order resource creation.

Any help appreciated.

Kind regards

Sean.

pixel fairy

unread,
Sep 15, 2016, 8:40:42 AM9/15/16
to Vagrant, sean....@tendosolutions.com
dont know of any dependency function in vagrant. If your using virtualbox, just list them in the order you want them to come up. otherwise you could set the environment variable VAGRANT_NO_PARALLEL or write a little shell script to bring them up in groups.



Alvaro Miranda Aguilera

unread,
Sep 15, 2016, 8:44:19 AM9/15/16
to vagra...@googlegroups.com
Hello,

Vagrantfile is read top to bottom. Virtualbox is not run on parallel, so you can try:

say web requires db

you can do


db

web

and will work

Thanks
Alvaro.


--
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 vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/VI1PR0201MB2013B9E1D47420FACA3610AB83F00%40VI1PR0201MB2013.eurprd02.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.



--

Sean Farrow

unread,
Sep 15, 2016, 9:18:53 AM9/15/16
to vagra...@googlegroups.com

Hi,

 

They are in separate files, in separate repositories. It looks like I’m going to have to write a tool—maybe an excuse to learn go!

Is there any other solution, would this be something that would be wanted in vagrant?

Cheers

Sean.

--

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



 

--

--

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 vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezMcn1ORvfpJsBQZ%2BVELz8FmEYkpLixFG3k-o-u%3DyJaLw%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages