问题
I'm managing a chef server and I want to pull the latest cookbooks (if they have been changed, or new ones added). This is so that I can develop on the newest changes, and be sure I'm not working with stale data. I would assume it would be similar to git workflow where I pull the latest and merge if necessary.
I know I can issue a "knife download /" but this seems costly and time-consuming, to download the entire repo each time.
Oddly enough - I haven't been able to find any articles or documentation that suggest how to do this. Which makes me think, possibly my workflow is not correct or I am missing a larger piece.
Is there a better way to update my repo, and get into quick, efficient developer workflow?
回答1:
Cookbooks, and all Chef data other than nodes and clients, is generally kept in git. Chef Server handles releases of that data, but not development.
回答2:
Configure berkshelf to fetch your cookbooks from the desired git repository https://docs.chef.io/berkshelf.html
来源:https://stackoverflow.com/questions/44727013/how-to-update-chef-cookbooks-in-a-developer-workflow