electric-it / minimart

MiniMart RubyGem for Chef cookbook mirroring and storage.
Apache License 2.0
52 stars 20 forks source link

remove cookbook option #12

Closed lcc2207 closed 9 years ago

lcc2207 commented 9 years ago

Can a remove cookbook option be added to minimart?

tapickell commented 9 years ago

We just remove it from your inventory.yml file then resync. Are you thinking of something in the UI?

lcc2207 commented 9 years ago

Maybe I'm missing how to manage deletes, can you expand on how you clean up the files associated with the cookbooks you remove?

tapickell commented 9 years ago

Sure thing. This is how we have been using it. In the ReadMe we have added a part about using Jenkins to build this. In that example script there is a call to

echo Mirroring cookbooks...
minimart mirror

This is pulling down everything listed in the inventory.yml file into the inventory directory in preparation for syncing. After the sync is finished then we call

echo cleaning up Jenkins...
rm -rf ./inventory

to clear out what was there so every time we run this build anything that was removed from the inventory is removed from our Minimart repo.

I hope this helps.