I’m trying to us chef provisioning.
It seems that it can’t find my cookbooks. It doesn’t appear to have any knowledge of berkshelf. Running a ‘berks install’ installs dependent cookbooks just fine. However, running chef provisioning with a command like this:
chef-client -z -o some-recipe -c knife.rb
results in an error that the apt cookbook can’t be found. From reading various blogs, it seems like I might need to run a ‘berks vendor somedir’ after each and every edit of the recipe, and then also make sure that the vendored dir is in the cookbook_paths in my knife.rb. Do I really need to run a berks vendor every single time I edit the recipe?
I saw some blogs where people added ~/.berkshelf/cookbooks to their cookbook_paths in knife.rb. However, this won’t work as the cookbooks in the berkshelf cache directory are stored as $name-$version, and chef wants them in the format of just $name.
There’s zero documentation on how chef provisioning is supposed to work with berkshelf as far as I can tell. Btw, is chef provisioning dead? Is it still supported?