Hello Janus
Vagrantfile is read top to bottom and as you have 2 boxes, you can do this
block to define box 2
block to define box 1
provision script on box 1
In that way, when the provision run on box 1, box 2 is already up
if you can share your vagrantfile, I can tell you how to do it
But basically is something like this:
config.vm.box = "user/pass"
config.vm.define "box2" do |box2|
#specific bits for box2
end
config.vm.define "box1" do |box1|
#specific bits for box1
#provision for the script that create the cluster, etc.
end
On Fri, May 8, 2015 at 1:50 AM, Janus <[email protected]> wrote:
> Hey guys,
>
> I want to set up a two node high availability cluster with DRBD. I managed
> to automatically create two VMs with 1 virtual HDD each and configure the 2
> VMs equally but at a certain point my primary node waits for the secondary
> node to get "online" (when I start the drbd service). The creation of the
> second node is started AFTER the provisioning of the first node has
> finished, therefore I either need a parallel provisioning or some sort of
> alternating provisioning.
>
> Is it possible to achieve this kind of VM-A provision part 1 -> VM-B
> provision part 1 -> VM-A provision part 2 -> VM-B pro... setup inside a
> single Vagrantfile?
>
> Thanks in advance
>
> --
> 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.