I'm a huge fan of Berkshelf and I've released few community cookbooks using it and its awesome.
Now, I'm starting a new chef project and I went ahead with Berkshelf for this too.
But I'm finding some confusions/difficulties using it for the project.
Following is in the Berksfile:
site :opscode
cookbook 'mediawiki', github: 'millisami/chef-mediawiki'
cookbook 'sp-mediawiki', path: 'site-cookbooks/sp-mediawiki'
I've generated my application cookbook inside the site-cookbooks
folder.
When I do berks install
, it errors out:
An error occurred while reading the Berksfile: no metadata.rb or metadata.json found at \
/Users/millisami/Code/chef-sp/site-cookbooks/sp-mediawiki
Now I'm wondering where do I generate my application sp-mediawiki
cookbook?
If just create a new one berks cookbook sp-mediawiki
, it will be similar to the library cookbook.
This sort of flow is perfectly done using librarian-chef
which I am using on another project.
So, I'm trying to put a line that:
- Berkshelf is good to develop individual cookbooks
- Librarian-chef is good to manage the top-level orchestration
Am I right/wrong? How you folks use Berkshelf to manage your Org's chef-repo?