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


Chronological Thread 
  • From: Bryan Berry < >
  • To:
  • Subject: [chef] best way to keep both chef-repo and cookbooks under source control?
  • Date: Wed, 12 Oct 2011 18:16:30 +0200

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.

§