Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging chef recipes without vagrant destroy and re-provision

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?

like image 929
Michael Avatar asked Mar 08 '12 22:03

Michael


People also ask

What is chef vagrant?

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.


1 Answers

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.

like image 65
Darrin Holst Avatar answered Nov 10 '22 13:11

Darrin Holst