knife and berkshelf are both used for uploading the cookbook. the berkshelf is taking care of "third party dependencies" as well feom berkfile or Metadata.rb. Is that the only difference or there is more to it?
knife and berkshelf difference?
356 Views Asked by Kamlendra Sharma At
1
There are 1 best solutions below
Related Questions in CHEF-INFRA
- Can I reference multiple versions of a Chef cookbook?
- chef bootstrap a node on google cloud
- Support multiple notifies in definitions
- Chef cleanup - nodes, environments, cookbooks, roles etc.,
- Chef remote_file from https site with self signed certificate
- test-kitchen: how to read platform specific attributes in kitchen.yml
- Accessing Ubuntu chef server using hostname in my windows machine won't work
- Bootstrapping Chef to Windows Node failing
- wait until the end of Chefs compile phase before running code block?
- Chef knife configuration
- Unexpected tASSOC, in a chef recipe. What's wrong?
- Chef script - read content of a file to use in http _request
- Chef Knife not saving changes with editor
- Chef: Uploading modified cookbook not working?
- Pass a variable from bash into chef template
Related Questions in KNIFE
- Chef Knife not saving changes with editor
- Chef workstation is unable to find knife.rb unless in "chef-repo"
- Knife cookbook missing commands
- How to get only the results of 'knife search' commands
- Adding subcommands to knife, how can ChefDK use them in a recipe?
- How to query cookbook versions on a node?
- Is there a way to use "knife search node" or "knife show node" that will tell you the cookbook/recipe version being used?
- How to update node run_list using knife, during convergence
- Chef client bootstraping with the wrong ethernet interface
- knife with encrypted client key?
- knife vault rotate all keys -- tries to rotate deleted vault
- Conflicting gem dependencies (knife plugin)
- Chef recipe error: Error Resolving Cookbooks for Run List
- Encrypt data bag from inside of ruby without relying on knife
- Knife Solo Cook Error
Related Questions in BERKSHELF
- Enabling SSL for berk upload in WINDOWS
- chef cookbook delivery - chef server vs. artifactory + berkshelf
- gem install berkshelf fails with Failed to build gecode library in Centos 6
- How do I get chef cookbooks to be downloaded in Unix format on Windows?
- Problems with using non-community cookbooks with berkshelf
- How can Vagrant/Berkshelf be used to test AWS apps?
- How to run Chefspec on a cookbook that depends on another cookbook?
- Disable Chef/Berks SSL verification inside test kitchen
- Rbenv vagrant global ruby version unchanged
- Vagrant Berkshelf - Shelf Path?
- knife and berkshelf difference?
- vagrant-berkshelf no longer works after upgrade to vagrant 1.4
- Errors Installing vagrant.berkshelf
- Berkshelf command error
- How to set Chef Cookbook Dependencies in metadata file
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In a loose sense, Berkshelf is a kind of "package manager" for Chef cookbooks.
It is somewhat like what
yumis torpm, or whatapt-getis todpkg.As you pointed out, Berkshelf provides dependency management for a given Chef cookbook. It can not only pull external dependencies, but dependent cookbooks (and versions) from a given code (Git/Bitbucket) repository. And with larger Chef deployments, there is always the complication of managing multiple dependencies.
Sometimes the dependencies are immediately obvious. Just to illustrate this, if I have a cookbook
my_rabbitmq_server, withmetadata.rbas:I may be tempted to think that there is only 1 dependency, and I can easily resolve it with
knife.However...
The
rabbitmqcookbook may depend on other cookbooks, which may depend on some others. This kind of nested dependency can result in having to pull many cookbooks (sometimes > 10). This can be done by knife, but it is time consuming and error prone.Another feature is that cookbooks uploaded with Berkshelf are frozen for that version (default behaviour). It will prevent the cookbook with same version from being uploaded again.
If we refer to the above example, I would not be able to upload
my_rabbitmq_serverversion0.1.0with Berkshelf after making some changes. So it kind of makes version bump necessary for any changes to cookbook code.If you haven't already gone through the official documentation, I would highly recommend you to do so.