- From: Juan Jesús Ojeda Croissier <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Best practices for keeping repo and server sync'd
- Date: Sat, 7 Apr 2012 18:52:10 +0100
On Fri, Apr 6, 2012 at 6:09 AM,
<
>
wrote:
>
hello,
>
>
guard-knife seems very interesting.
>
>
As the initial sender of this post, we are using subversion, and we have a
>
small bash script like this
>
>
cd /root/svnChef/trunk
>
svn update
>
# TODO: Backup cookbooks
>
knife cookbook upload -a
>
>
We are never uploading a cookbook directly to the server, all the cookbook
>
changes has to go through subversion commit.
>
>
By the way, is there a way for exporting all cookbooks from the server, such
>
knife cookbook export -a, please ?
>
That's what we would like to do for replacing '# TODO: Backup cookbooks'
>
There is not such option. I think the closer thing is to do:
knife cookbook list | while read cb ; do knife cookbook download $cb
-d backup/ ; done
Or something similar.
You could save the last version (as in the example), all the versions,
commit to the svn, etc, but I guess it must be (by now) still as a
script or Rake task.
I was thinking about make my own Knife plugin to sync the repos, but
probably it would be interesting to have some sync functionalities at
the Knife's core...
--
Juanje
Archive powered by MHonArc 2.6.16.