- From: Vladimir Skubriev <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses git subtreein achefrepo to development cookbooks separately from the production chef-repo ?
- Date: Tue, 29 Oct 2013 18:18:04 +0400
29.10.2013 17:24, Tom Duffield пишет:
"
type="cite">
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Щхен сай about
environments
roles
data_bags
cookbooks
projectcookbook1
projectcookbook2
Thank you very much for the answer.
I will learned today and next days. And may be ask a some small
questions in this thread.
How I can understand now I was wrong when I said about using git sub
tree for store in a chef repo cookbook separately. Because cookbook
is a separate program which must be controlled in a separate version
control system repository.
But official documentation about chef-repo (http://docs.opscode.com/essentials_repository.html)
will report otherwise:
cookbooks/ Contains cookbooks that have been downloaded from the
https://cookbooks.opscode.com or created locally.
This is confusing. Because at the one hand we must to store
cookbooks in a chef repo. But other hand we must store cookbooks
separately and using a berkshelf or librarian or other script for
download cookbooks to the chef server.
How I can understand now:
I must create a separate git repo (Now I'am doing this right now
this) and upload cookbooks i.e. my own application cookbooks and
community cookbooks with a tool named librarian or berkshelf?
I.e all cookbooks must be uploaded automatically and should be
avaiable from my admin workstation where is chef-repo, berkshelf and
other developmnet works.
Ideally I must store my bare git repos of my own cookbooks in the
separate server in local network or using github.
But push only production ready snapshots to the git server - best
practice of course.
Summing up:
Git subtree is not required because cookbooks is developing
separated.
Is I am right ?
Or may be something wrong ?
--
Best regards,
CVision Lab System Administrator
Vladmir Skubriev
|
- [chef] Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/28/2013
- [chef] Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Eduardo Dias, 10/29/2013
- [chef] Re: Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/29/2013
- [chef] Re: Re: Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Eduardo Dias, 10/29/2013
- [chef] Re: Re: Re: Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Eduardo Dias, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Anybody uses git subtree in a chef repo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Anybody uses git subtree in a chefrepo to development cookbooks separately from the production chef-repo ?, Eduardo Dias, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses git subtree in achefrepo to development cookbooks separately from the production chef-repo ?, Tom Duffield, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses git subtreein achefrepo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses gitsubtreein achefrepo to development cookbooks separately from the production chef-repo ?, Tom Duffield, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses gitsubtreein achefrepo to development cookbooks separately from the production chef-repo ?, Torben Knerr, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Anybody usesgitsubtreein achefrepo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Anybody uses gitsubtreeinachefrepo to development cookbooks separately from the production chef-repo ?, Vladimir Skubriev, 10/29/2013
Archive powered by MHonArc 2.6.16.