Chef process with Artifactory

一个人想着一个人 提交于 2019-12-12 04:46:35

问题


I have read this tutorial about setting Chef repositories in Artifactory ("my own" from Git and official Chef supermarket - two remotes).

Everything works fine, but I don't really understand, how to "pin" it with Chef. I know that you can use ChefDK to easy install cookbooks locally and push them to repository. My question is about end-users: how they can use this virtual Chef repository to easy use cookbooks?

I mean, end-user should run command like: chef-client -j params.json, where it has run_lists or chef-client -o "recipe[my-cookbook]" directly. With chef-server this cookbook would be downloaded automatically from server, client has no need to download it manually. How does it work with artifactory, without server (-z / --local option)? Can I somehow set (client.rb?) URL to automatically download cookbooks from repo?

If not, how should I configure chef-server to automatically use cookbooks from Artifactory?


回答1:


Chef server and chef-client don't talk to artifactory at all, it is only a replacement for running a private Supermarket for internal use. You would still use Berks or the policyfile system to upload to your Chef Server as per normal.



来源:https://stackoverflow.com/questions/44627646/chef-process-with-artifactory

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