{"action":"created","issue":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/535","labels_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/535/comments","events_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/535/events","html_url":"https://github.com/berkshelf/berkshelf/issues/535","id":14481091,"number":535,"title":"How to use Berkshelf to manage Organization repo like the Librarian-chef does?","user":{"login":"millisami","id":47914,"avatar_url":"https://avatars.githubusercontent.com/u/47914?v=3","gravatar_id":"","url":"https://api.github.com/users/millisami","html_url":"https://github.com/millisami","followers_url":"https://api.github.com/users/millisami/followers","following_url":"https://api.github.com/users/millisami/following{/other_user}","gists_url":"https://api.github.com/users/millisami/gists{/gist_id}","starred_url":"https://api.github.com/users/millisami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millisami/subscriptions","organizations_url":"https://api.github.com/users/millisami/orgs","repos_url":"https://api.github.com/users/millisami/repos","events_url":"https://api.github.com/users/millisami/events{/privacy}","received_events_url":"https://api.github.com/users/millisami/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":72,"created_at":"2013-05-18T09:29:12Z","updated_at":"2015-09-09T21:06:57Z","closed_at":"2013-05-21T22:28:33Z","body":"I'm a huge fan of Berkshelf and I've released few community cookbooks using it and its awesome.\r\n\r\nNow, I'm starting a new chef project and I went ahead with Berkshelf for this too.\r\n\r\nBut I'm finding some confusions/difficulties using it for the project.\r\n\r\nFollowing is in the Berksfile:\r\n\r\n    site :opscode\r\n\r\n    cookbook 'mediawiki', github: 'millisami/chef-mediawiki'\r\n    cookbook 'sp-mediawiki', path: 'site-cookbooks/sp-mediawiki'\r\n\r\nI've generated my application cookbook inside the `site-cookbooks` folder.\r\n\r\nWhen I do `berks install`, it errors out:\r\n\r\n    An error occurred while reading the Berksfile: no metadata.rb or metadata.json found at \\\r\n    /Users/millisami/Code/chef-sp/site-cookbooks/sp-mediawiki\r\n\r\nNow I'm wondering where do I generate my application `sp-mediawiki` cookbook?\r\n\r\nIf just create a new one `berks cookbook sp-mediawiki`, it will be similar to the library cookbook.\r\n\r\nThis sort of flow is perfectly done using `librarian-chef` which I am using on another project.\r\n\r\nSo, I'm trying to put a line that:\r\n\r\n1. Berkshelf is good to develop individual cookbooks\r\n2. Librarian-chef is good to manage the top-level orchestration\r\n\r\nAm I right/wrong? How you folks use Berkshelf to manage your Org's chef-repo?\r\n"},"comment":{"url":"https://api.github.com/repos/berkshelf/berkshelf/issues/comments/139045613","html_url":"https://github.com/berkshelf/berkshelf/issues/535#issuecomment-139045613","issue_url":"https://api.github.com/repos/berkshelf/berkshelf/issues/535","id":139045613,"user":{"login":"glenjamin","id":151272,"avatar_url":"https://avatars.githubusercontent.com/u/151272?v=3","gravatar_id":"","url":"https://api.github.com/users/glenjamin","html_url":"https://github.com/glenjamin","followers_url":"https://api.github.com/users/glenjamin/followers","following_url":"https://api.github.com/users/glenjamin/following{/other_user}","gists_url":"https://api.github.com/users/glenjamin/gists{/gist_id}","starred_url":"https://api.github.com/users/glenjamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenjamin/subscriptions","organizations_url":"https://api.github.com/users/glenjamin/orgs","repos_url":"https://api.github.com/users/glenjamin/repos","events_url":"https://api.github.com/users/glenjamin/events{/privacy}","received_events_url":"https://api.github.com/users/glenjamin/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T21:06:57Z","updated_at":"2015-09-09T21:06:57Z","body":"Sorry for dredging this ol' chestnut up again, I'm building up a new project and facing the how-many-chef-repos question - and this thread seems to be a font of knowledge on that front.\r\n\r\nMy context is a relatively small \"ops\" team ~5 people, with a medium size dev team (~40), building, deploying and running a co-ordinated suite of applications.\r\n\r\nThings I'm sold on:\r\n* Having library cookbooks be in their own repo (ideally on github, or githubbable)\r\n* Having application cookbooks be in their own repo (ideally on github, or githubbable)\r\n* Having an \"infrastructure repository\" which contains data_bags, roles, and environment files\r\n\r\nThe bit I'm strugging with is how and where wrapper & environment cookbooks fit into this. At the moment I've taken the path of least resistance, and included some cookbooks in the infrastructure repository along with Berksfile to pull in library and application cookbooks from supermarket.\r\n\r\nThe cookbooks in the main repo are mostly about doing things specific to our organisation and tying those together into a whole ecosystem. This is the bit where I'm struggling to see how to represent this across many independently versioned cookbooks.\r\n\r\nWhen producing a bunch of independent but related software applications, the master chef repo has always been the piece I've used to stitch them all together.\r\n\r\nCan anyone point me in the direction of some good examples of this done well?"}}