Chris F
Chris F

Reputation: 16673

How to use chef environment cookbooks?

I've read Jamie Windsor's blog "The Environment Cookbook Pattern" and understand the concept, along with the concept that cookbooks, other than environment cookbooks, should be in their own version controlled repository, and not in the chef repo directory tree structure. Should the environment cook be the ONLY cookbook in the chef repo directory structure, along with the product? In other words my product should have this directory structure?

- Product
--- component1
--- component2
--- chef-repo
------ cookbooks
--------- environment-cookbook

Upvotes: 0

Views: 212

Answers (1)

coderanger
coderanger

Reputation: 54181

If you go this route, you generally don't even need the chef-repo structure at all. Just put each cookbook in its own repo to start with, and possibly try out the workflow with the top-level env cookbook stored next to your app code. I don't do the latter, but Jamie prefers it, see what works best for you.

Upvotes: 0

Related Questions