I understand what you're after here, Sadly I'm not sure myself but my 
example is building a salt server, two clients and then after the fact 
needing to then accept the requested keys on the salt server, which can 
only be done after the workstation has sent them, ie: after every box is up.

So an inline script on the box like Alvaro mentioned won't do the trick as 
the master won't know how long it takes the clients to provision but it 
needs to be up first to recieve the keys.

On Friday, 23 October 2015 23:44:56 UTC+1, Joaquin Menchaca wrote:
>
> Is there any way to apply a provisioning script after all systems are 
> fully up and running in a multi-machine setup.  I have scripts that would 
> need to run, but have to fetch information from other systems that should 
> be online before the provisioning script is run.  I would like to use the 
> built-in provisioner.
>
> Thus in snippet below, wonder if there is a way to run the provisioning 
> after all systems are up?
>
> Vagrant.configure("2") do |config|
>
>   # workstation node
>   config.vm.define "work" do |work|
>     work.vm.box = "hashicorp/precise64"
>     work.vm.hostname = "workstation01"
>     work.vm.network "private_network", ip: "192.168.50.4"
>     work.vm.provision "shell", path: "setup-work.sh"
>   end
>
>   # server to configure
>   config.vm.define "server" do |server|
>     server.vm.box = "hashicorp/precise64"
>     server.vm.hostname = "server01"
>     server.vm.network "private_network", ip: "192.168.50.5"
>     server.vm.provision "shell", path: "setup-server.sh"
>   end
>
> end
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/d7686051-e41c-4336-92d1-d047f8fb2c50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to