Reputation: 24626
I have some fairly complex provisioning on a box, after which I would like to programatically do the equivalent of vagrant reload
.
The best solution I have seen is here, however the code at that link seems to be broken on Vagrant 1.4+ (see the comments below the code).
Question: Are there any instructions for Vagrant 1.4?
Upvotes: 5
Views: 2768
Reputation: 10536
You could give a try to this Vagrant plugin I've written:
https://github.com/emyl/vagrant-triggers
Once installed, you should put in your Vagrantfile
something like:
config.trigger.after :provision, :execute => "vagrant reload"
Upvotes: 7