I have created a cookbook and I am using manage.chef.io
to host and deploy it. I have hosted the cookbook in GitHub private repo.
Consider a scenario:
If I make some changes in the cookbook and knife cookbook upload
it, but I forget to push it to Github.
How do I make sure that it does not happen? Not even by mistake. How do I make sure that any time everyone has the latest repo, and can't knife upload
it otherwise. Just like you can't git push
if you have not git pull
ed the changes.
My colleague pulls from GitHub but sees no change. Thus he makes his own changes and knife cookbook upload
it. But he will replace my changes as he has an old version.
So what is the best practice to manage a cookbook among multiple DevOps ?