Is there any hook like "pre vagrant up"?
deployment, vagrant
Solution
You could give a try to this Vagrant plugin I've written:
https://github.com/emyl/vagrant-triggers
Once installed, you could put in your Vagrantfile something like:
config.trigger.before :up, :execute => "..."
Problem
I'm trying to automate my development boxes with vagrant. I need to share the vagrant setup with other developers, so we need to be sure that some boundary conditions are fullfilled before the normal `vagrant up` process is started. Is there any hook (like in git, pre-commit or other pre-* scripts) in vagrant? The provision scripts are much too late. My current setup looks like this: ``` Vagrantfile vagrant-templates/ vagrant-templates/apache.conf vagrant-templates/... sub-project1/ sub-project2/ ``` I need to be sure, that sub-project{1..n} exists and if not, there should be a error message. I would prefer a bash-like solution, but I'm open minded for other solutions.