[chef] Re: Re: best way to keep both chef-repo and cookbooks under source control?


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] Re: Re: best way to keep both chef-repo and cookbooks under source control?
  • Date: Thu, 13 Oct 2011 08:03:29 +0200

Thanks Matt,

I will read about the vendor-branch pattern through Tom's link

Any suggestions on how to track my chef-repo? should I track it separately from my cookbooks using .gitignore to keep it from tracking cookbooks/  ?

On Wed, Oct 12, 2011 at 6:21 PM, Matt Ray < "> > wrote:
If you plan on sharing your cookbooks or using them with more than 1
chef-repo, it's not uncommon to keep them in another version control
repository and use the vendor-branch pattern to only bring in tagged
"releases" of your cookbooks. This allows development of the cookbooks
isolated from the deployment and makes using multiple chef-repos
feasible with a shared cookbook set.

Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.
"> | (512) 731-2218
Twitter, IRC, GitHub: mattray



On Wed, Oct 12, 2011 at 11:16 AM, Bryan Berry < "> > wrote:
> Anyone have any recommendations on the best way to keep both chef-repo and
> cookbooks under source control?
> My current thought is to keep cookbooks/ as a sub-directory of chef-repo/
> but to put   cookbooks/*  in my top-level .gitignore for chef-repo
> so
> chef-repo/
>              .gitignore    # inside; ignore cookbooks/*
>               cookbooks/
>               databags/
>               ....
> is there a better strategy?
>
> Following previous discussions on this list, I will keep all
> corporate/sensitive info in chef-repo and no corporate info (ip addrs,
> hostnames, etc.) in cookbooks/
>
>
>




Archive powered by MHonArc 2.6.16.

§