Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove cookbook option #12

Closed
lcc2207 opened this issue Jun 3, 2015 · 3 comments
Closed

remove cookbook option #12

lcc2207 opened this issue Jun 3, 2015 · 3 comments

Comments

@lcc2207
Copy link

lcc2207 commented Jun 3, 2015

Can a remove cookbook option be added to minimart?

@tapickell
Copy link
Contributor

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

@lcc2207
Copy link
Author

lcc2207 commented Jun 4, 2015

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants