How to update chef cookbooks in a developer workflow

余生长醉 提交于 2020-01-07 02:44:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!