I have a multi-machine Vagrantfile setting up a 5 node environment.
I've been looking around to see what levels of control you have over the order of provisioning, but it's pretty limited:
https://docs.vagrantup.com/v2/multi-machine/
I want to provision 5 nodes, then go back to the first node, and run other provisioning steps there.
What I mean is that you have a Vagrantfile like this:
Vagrant.configure('2') do |config|
config.vm.provision some stuff
config.vm.define 'node1' do |node1|
node1.vm.provision some more stuff
end
config.vm.define 'node2' do |node2|
node2.vm.provision some other stuff
end
... node3 node4 node 5 ...
end
But after vagrant has finished starting and provisioning the all the machines up to node5, I then want to run another provisioner on node1. Does anyone know how to do this? Maybe some ruby hackery?