On Thursday, July 10, 2014 9:35:58 AM UTC+2, Cosmin Cătălin Sanda 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.

Reply via email to