我已阅读本教程有关设置Chef库的信息在Artifactory中(来自Git和官方Chef超市的我自己的"产品-两个遥控器).
I have read this tutorial about setting Chef repositories in Artifactory ("my own" from Git and official Chef supermarket - two remotes).
一切正常,但我不太了解如何与Chef一起固定".我知道您可以使用ChefDK在本地轻松安装食谱并将其推送到存储库.我的问题是关于最终用户的:他们如何使用此虚拟Chef存储库来轻松使用菜谱?
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?
我的意思是,最终用户应运行如下命令: chef-client -j params.json,直接在其中具有run_lists或chef-client -o "recipe[my-cookbook]".使用厨师服务器,可以从服务器自动下载该食谱,客户端无需手动下载.没有服务器(-z/--local选项)时,它如何与工件一起使用?我可以以某种方式设置(client.rb?)URL以从回购中自动下载食谱吗?
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?
如果没有,我应该如何配置Chef-server以自动使用Artifactory的食谱?
If not, how should I configure chef-server to automatically use cookbooks from Artifactory?
推荐答案厨师服务器和厨师-客户端根本不谈论人工制品,它只是运行私有超市供内部使用的替代品.您仍然可以正常使用Berks或policyfile系统将其上传到Chef Server.
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.
更多推荐
Artifactory的厨师流程
发布评论