We are working on chef recipe that builds PHP from source. However, every time we make a change to our recipe and we want to run it again it takes a long time (about 20 minutes).
What we have been doing is making our changes then using:
vagrant destroy
followed by:
vagrant up
It would be nice if somehow we could just re-run our single recipe we are trying to update.
Anyone know how we could do this? Or how vagrant determines our php recipe is already installed/executed?
The Vagrant Chef Solo provisioner allows you to provision the guest using Chef, specifically with Chef Solo. Chef Solo is ideal for people who are already experienced with Chef, already have Chef cookbooks, or are looking to learn Chef.
vagrant provision
should do this for you. Chef should take care of only running the things that need to be run...like a changed recipe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With