The vagrant file for multiple machines is processes top to bottom

so your vms will be created like:

master
slave-1
slave-2
slave-3

in my very particular case, I do oracle rac cluster, so I did a reverse
counter

so my vms are created like

node3
node2
node1

and node1 does the magic

will this work for you?

Alvaro.


On Thu, Jul 10, 2014 at 7:35 PM, Cosmin Cătălin Sanda <
[email protected]> wrote:

> Hi,
>
> I have a master node which is being provisioned using Puppet. After its
> provisioning is finished, there are 3 others slave nodes which are being
> provisioned in a similar fashion. What I want to do is run a provisioner
> (shell, Puppet) on the master node, but after the 3 slaves have been
> already provisioned. The order in which the master and the slaves are
> provisioned is important. I have attached a snippet of my Vagrant script:
>
>   config.vm.define :master, primary: true do |master|
>     master.vm.network 'private_network', ip: '192.168.66.60'
>     master.vm.hostname = 'master.cluster.lab'
>     master.vm.provision :puppet do |puppet|
>       puppet.manifests_path = 'puppet/manifests'
>       puppet.module_path    = 'puppet/modules'
>     end
>   end
>
>   1.upto(3) do |index|
>     nodeName = 'slave-' + index.to_s
>     config.vm.define nodeName do |node|
>       node.vm.network :private_network, ip: '192.168.66.6 + index.to_s
>       node.vm.hostname = 'slave-' + index.to_s + '.cluster.lab'
>       node.vm.provision :puppet do |puppet|
>         puppet.manifests_path = 'puppet/manifests'
>         puppet.manifest_file  = 'slave.pp'
>         puppet.module_path    = 'puppet/modules'
>       end
>     end
>   end
>
>     This is where I need to apply an additional master provisioning (I
> basically have to start a service on it)
>
> I have tried using the master variable, but naturally that failed.
>
> Any ideas?
>
> --
> 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