[chef] Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses git subtree in achefrepo to development cookbooks separately from the production chef-repo ?


Chronological Thread 
  • From: Tom Duffield < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses git subtree in achefrepo to development cookbooks separately from the production chef-repo ?
  • Date: Tue, 29 Oct 2013 08:24:42 -0500

Storing all of your cookbooks in the chef-repo has become somewhat of an anti-pattern. Instead, the recommendation is that you have a "chef-data" folder, which is source controlled, where you store all your roles, environments and data_bags. Next, you use a tool like Berkshelf to manage dependencies for your project cookbooks. This encourages the use of one git-repo per cookbook. 

So the file structure would look something like this:

chef-data
     environments
     roles
     data_bags
cookbooks
     projectcookbook1
     projectcookbook2

Instead of downloading and owning the community cookbooks, you'd use Berkshelf (which some describe as bundler/maven for Chef cookbooks). You can find out more about Berkshelf at berkshelf.com or by watching this ChefConf video where Jamie Winsor, the creator of Berkshelf, describes why Berkshelf was made: http://www.youtube.com/watch?v=hYt0E84kYUI&feature=c4-overview-vl&list=PLrmstJpucjzXNMLcI5X-EjirpDd-SITd3


Tom Duffield — Automation Consulting Engineer

651.769.7497 –  " style="color:rgb(105,117,130)" target="_blank">  – my: Linkedin  Twitter

OPSCODE

CODE CAN

opscode.com   Blog   Facebook   Twitter   YouTube


On Tue, Oct 29, 2013 at 7:02 AM, Eduardo Dias < " target="_blank"> > wrote:
Great.

I have a nice day.

Eduardo


2013/10/29 Vladimir Skubriev < " target="_blank"> >
29.10.2013 15:52, Eduardo Dias пишет:

hummmm.
I think that I understood you.
I never used chef-repo before, I have read quickly some minutes before, I nee to read more to try to help you.
Basically, if I am not wrong, it makes a local repo with all cookbook that you want to manage, with the same structure of chef server.
Sorry but I need to learn more.


No sorry, because I also learned about it just now))

But I am using chef-server over a halt a year ))

I am no hurry. I will be wait, communicate and study for this task too.

Wait for a guru )


--
Best regards,

CVision Lab System Administrator
Vladmir Skubriev




--

Atenciosamente,

Eduardo




Archive powered by MHonArc 2.6.16.

§