Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Cookbook Dependencies

mlafeldt edited this page Dec 23, 2014 · 2 revisions

Before provisioning a system, chef-runner automatically resolves cookbook dependencies by following these rules:

  1. If the current folder is a cookbook and its dependencies have already been resolved, only sync changes to this cookbook.
  2. If a Berksfile is present, resolve dependencies with Berkshelf. *)
  3. If a Cheffile is present, resolve dependencies with Librarian-Chef. *)
  4. Use/sync cookbook in current folder.

*) If a Gemfile exists and Bundler is installed, these tools will be executed using bundle exec.

In case you want to run a specific dependency resolver, use the --resolver option. Available resolvers are: berkshelf, librarian, and dir.

Clone this wiki locally