From the course: Learning Chef

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Resolve dependencies with Berkshelf

Resolve dependencies with Berkshelf

From the course: Learning Chef

Start my 1-month free trial

Resolve dependencies with Berkshelf

- [Instructor] We just discussed building a wrapper Cookbook, called myhaproxy, that actually calls the haproxy Cookbook as a dependency. The way we accomplished this was by adding this dependency to our metadata file for our new wrapper Cookbook. Notice, inside of the metadata file here, I've added this dependency on haproxy, and I told it I want to use a specific version of this dependency. Now, you could go and download these Cookbooks directly from the Supermarket, and upload them. Your Chef server just needs these Cookbooks to be available. However, this might present a slew of problems. For example, heading back to the Supermarket, you'll actually notice that the haproxy Cookbook under this tab called Dependencies. haproxy itself has dependencies. It needs these Cookbooks in order to function properly. You'll find that the majority of Cookbooks actually call other Cookbooks as libraries, and sometimes hijack their functionality. With this in mind, I'd actually have to download…

Contents