I wrote a blog post awhile back[1] about my own personal chef-repoOkey.
conversion to use Berkshelf. The information is not all still 100%
relevant/accurate given the entropy of tool development and my
personal use patterns, but it's pretty close.
I still have a ./cookbooks directory, because I don't see a reason to
publish and manage 20+ additional cookbook repositories, especially
private ones. The main difference between the post and now is have a
helper method like this in the Berksfile:
def internal_cookbook(name, version = '>= 0.0.0', options = {})
cookbook name, version, { :path => "./cookbooks/#{name}" }.merge(options)
end
Then for all the "internal" cookbooks, in the ./cookbooks directory, I
have entries like this:
internal_cookbook "housepub-workstation"
internal_cookbook "users"
Internally at Opscode, we're currently doing something like this, too.
We're working to move to a single-repo-per-cookbook as a longer term
goal.
Hope this helps,
Joshua
[1]:
http://jtimberman.housepub.org/blog/2012/11/19/chef-repository-berkshelf-conversion/
- apparently a year ago in fact :).
Archive powered by MHonArc 2.6.16.