Skip to content

Instantly share code, notes, and snippets.

@jchauncey
Created June 28, 2013 14:53
Show Gist options
  • Save jchauncey/5885282 to your computer and use it in GitHub Desktop.
Save jchauncey/5885282 to your computer and use it in GitHub Desktop.
Main cookbook berksfile will look something like this
cookbook 'foo', :github => 'MyOrg/foo'
The foo cookbook has a dependency on a forked cookbook that we have modified that also exists in the community site
(at a higher version)
cookbook 'bar', :github => 'MyOrg/bar'
When I try and do a berks install on the Main cookbook it will always download the community cookbook of bar and not my forked
version that I specify in the foo cookbook berksfile.
If I upload the bar cookbook to my hosted chef environment and code that specific version in the foo cookbook berksfile
a berks install will resolve the correct dependency. However, we now have a public cookbook that depends on another cookbook
that is only available in our hosted chef env.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment