Regarding cookbook dependencies with chef-client, if for example two versions
of the yum cookbook (versions 2.x and 3.x…incompatible btw) reside on the
chef server and the metadata.rb file provides no version dependency
constraints, which cookbook will include_recipe calls use?
I think most people here have probably been bitten by something like this in some form or another.
chef-client will pull down the latest version from the Chef server, even if it’s incompatible. It’s always best to specify, even if it’s optimistic ‘>=’ or pessimistic ‘~>’.
Regarding cookbook dependencies with chef-client, if for example two versions
of the yum cookbook (versions 2.x and 3.x…incompatible btw) reside on the
chef server and the metadata.rb file provides no version dependency
constraints, which cookbook will include_recipe calls use?
Regarding cookbook dependencies with chef-client, if for example two versions
of the yum cookbook (versions 2.x and 3.x…incompatible btw) reside on the
chef server and the metadata.rb file provides no version dependency
constraints, which cookbook will include_recipe calls use?
You can always use knife-solve to run the version solution and see what you will get.