deem
deem

Reputation: 1252

Chef process with Artifactory

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?

Upvotes: 0

Views: 648

Answers (1)

coderanger
coderanger

Reputation: 54211

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.

Upvotes: 3

Related Questions