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


Chronological Thread 
  • From: Eduardo Dias < >
  • To:
  • Subject: [chef] Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?
  • Date: Tue, 29 Oct 2013 08:57:06 -0200

Hi Vladimir,

we use Git to manage our repo cookbooks.
We have 2 types of cookbooks, one that we call "base cookbooks", that we use for common installations, like Java, Tomcat, HAProxy, etc..(we do not change the community cookbooks, we use then as is and we extend if we need to change something). For these type of cookbooks, we use a repo in Git with the same name of cookbook, and the upload is directly. For the other type, that we call "project cookbooks", we use a directory inside of project repo, in our case, a directory named /project/build/cookbook (the build directory has others stuffs related to our Jenkins build system). To upload the cookbook we have a script in Ruby (you can use any script that you prefer) that copy the build cookbook directory to a temporary directory with the cookbook name and then, we execute the knife upload command.
It is a simple (not the best solution) but works.

I hope to had helped.
Sorry also, for my bad English.

Regards

Eduardo. 


2013/10/29 Vladimir Skubriev < " target="_blank"> >
Now I decide to choiche best method for creating and maintain a chef-repo.

When I started working with a chef I didn't using a chef-repo and starts development of my cookbooks in same directory in home.

For example: ~/chef-cookbooks

And there are my own cookbooks and community cookbooks.

Which is loading to the server via knife cookbook upload foldername.

My own cookbooks  development with mercurial cvs.

Site cookbooks git cloned or unpacked from tar.gz and has not modified.

Now I have come to the conclusion that I needed a chef-repo to store all my data in one place.

How I can store community cookbooks and my own cookbooks in chef-repo (In which folders they should be) ?

I can convert my mercurial repositories with a cookbooks to git repos and include them in the chef repo.

What do you think about this ?

Can I revice more flexibiliy and usabilty instead of many problems in this use case ?

And how to include community git clonned cookbooks in my future chef-repo(I want to use a berkshelf) ? Using a git sub trees or something else?

In general, I want to get a fully managed and flex system.

Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?

Excusme for bad english.

--
Best regards,

CVision Lab System Administrator
Vladmir Skubriev




--

Atenciosamente,

Eduardo



Archive powered by MHonArc 2.6.16.

§