{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-dk/issues/450","labels_url":"https://api.github.com/repos/chef/chef-dk/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-dk/issues/450/comments","events_url":"https://api.github.com/repos/chef/chef-dk/issues/450/events","html_url":"https://github.com/chef/chef-dk/pull/450","id":93833363,"number":450,"title":"Multiple policyfile sources","user":{"login":"danielsdeleo","id":37162,"avatar_url":"https://avatars.githubusercontent.com/u/37162?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsdeleo","html_url":"https://github.com/danielsdeleo","followers_url":"https://api.github.com/users/danielsdeleo/followers","following_url":"https://api.github.com/users/danielsdeleo/following{/other_user}","gists_url":"https://api.github.com/users/danielsdeleo/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsdeleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsdeleo/subscriptions","organizations_url":"https://api.github.com/users/danielsdeleo/orgs","repos_url":"https://api.github.com/users/danielsdeleo/repos","events_url":"https://api.github.com/users/danielsdeleo/events{/privacy}","received_events_url":"https://api.github.com/users/danielsdeleo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef-dk/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T16:25:03Z","updated_at":"2015-07-08T17:16:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef-dk/pulls/450","html_url":"https://github.com/chef/chef-dk/pull/450","diff_url":"https://github.com/chef/chef-dk/pull/450.diff","patch_url":"https://github.com/chef/chef-dk/pull/450.patch"},"body":"Addresses https://github.com/chef/chef-dk/issues/430\r\n\r\nThis allows you to have multiple `default_source` lines in your policyfile.rb, so you can have a `chef_repo` with all your org-specific stuff, but pull cookbooks from the public supermarket easily. The way it's designed right now, the cookbook sets need to be disjoint (i.e., there cannot be cookbooks with the same name in both locations). If you manually specify a cookbook's source with a `cookbook \"foo\", source_option: \"place\"` line, though it will be respected. One downside of that is, if there is a conflict between your two sources, and the cookbook is totally irrelevant (wouldn't be in the dependency solution), it'll end up in your policy anyway, because adding the `cookbook` line tells chef-dk you want that cookbook around. That said, the 80% case we're targeting here is where there shouldn't be any overlap between, say, supermarket and your chef repo (or internal supermarket), and if there is a conflicting cookbook, it's a mistake."},"comment":{"url":"https://api.github.com/repos/chef/chef-dk/issues/comments/119668377","html_url":"https://github.com/chef/chef-dk/pull/450#issuecomment-119668377","issue_url":"https://api.github.com/repos/chef/chef-dk/issues/450","id":119668377,"user":{"login":"ksubrama","id":9382254,"avatar_url":"https://avatars.githubusercontent.com/u/9382254?v=3","gravatar_id":"","url":"https://api.github.com/users/ksubrama","html_url":"https://github.com/ksubrama","followers_url":"https://api.github.com/users/ksubrama/followers","following_url":"https://api.github.com/users/ksubrama/following{/other_user}","gists_url":"https://api.github.com/users/ksubrama/gists{/gist_id}","starred_url":"https://api.github.com/users/ksubrama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksubrama/subscriptions","organizations_url":"https://api.github.com/users/ksubrama/orgs","repos_url":"https://api.github.com/users/ksubrama/repos","events_url":"https://api.github.com/users/ksubrama/events{/privacy}","received_events_url":"https://api.github.com/users/ksubrama/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T17:16:34Z","updated_at":"2015-07-08T17:16:34Z","body":"Yay! :+1: :ship: "}}