Chef cookbook dependencies of dependencies

chefcookbook

This might be a simple question – I am trying to install a cookbook (gitlab)

I cloned the cookbook into a folder on my local drive and ran

knife cookbook upload gitlab.

Immediately it threw an error:

Cookbook gitlab depends on cookbook postgresql version >= 0.0.0

So I ran

knife cookbook site download postgresql

It had some dependencies, which had further dependencies, and now I'm at the point where I am installing cookbooks I know I won't need (dmg, windows, etc.)

I was under the impression that this stuff automatically resolved itself like aptitude or yum. Did I miss some crucial step of a cookbook dependency resolver?

Best Answer

Use knife cookbook site install, which resolves dependencies.

Related Topic