I have a chef repository containing many cookbooks, and a Berksfile containing the following:
Dir.glob('cookbooks/*/').each do |path|
cookbook File.basename(path), :path => path
end
cookbook 'supervisor', '~> 0.5.1', :github => "opscode-cookbooks/supervisor"
This includes each cookbook from the repository, and an external cookbook from a github repository. By default, Berkshelf searches the opscode community site for any cookbooks that are not listed.
Instead of this, I would either like to:
- Disable this default, and never search an external site for missing dependencies.
- Replace this default with a local path, so that I can remove the
Dir.glob
that adds each of my local cookbooks.
As a side note, I'm fully aware that keeping cookbooks in the chef repository is considered an anti-pattern. It's not something I can change in this situation, and while Berkshelf is not designed to handle this, being able to turn of the default site so that no cookbooks are implicitly pulled in from an source the user does not control is still useful.