- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Repositories and git
- Date: Wed, 20 Jul 2011 00:10:35 -0600
On Tue, Jul 19, 2011 at 4:44 AM, Oliver Beattie
<
>
wrote:
>
Okay, this explains things a lot better.
>
So, consider the case I want to add a community cookbook to my server. How
>
would I go about doing that?
If your local repository is git:
knife cookbook site install COOKBOOK
knife cookbook upload COOKBOOK
This will install the cookbook in the chef-repo, handling all the cool
branching and tagging that you can do with git, then upload the
cookbook to the server. Somewhere in there you should probably read
the code to see what its going to do on your systems.
If you local repository is not git, then:
knife cookbook site download COOKBOOK
tar -zxvf COOKBOOK.tar.gz -C cookbooks
[ use your version control system to commit to the repo, do any
branch/merge/tag work etc ]
knife cookbook upload COOKBOOK
--
Opscode, Inc
Joshua Timberman, Director of Training and Services
IRC, Skype, Twitter, Github: jtimberman
Archive powered by MHonArc 2.6.16.