[chef] Re: Re: Re: Re: Re: Re: Best practices for keeping repo and server sync'd


Chronological Thread 
  • From: Rob Guttman < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Best practices for keeping repo and server sync'd
  • Date: Mon, 9 Apr 2012 16:26:08 -0400

We run our own gitosis git server which is what runs our chefserver upload 
git hooks.  We also use nagios to monitor the knife and rake log output to 
alert on any errors.

That said, I like Vladmir's suggestion of using jenkins for chefserver 
uploads - that may actually be a better option than what we do now (e.g., it 
could speed up the git pushes).

- Rob


On Apr 9, 2012, at 1:53 PM, Jesse Campbell wrote:

> Folks that are using git hooks, guard, etc:
> Are you running post-commit hooks on your own workstation?
> I'm looking into running from the chef server itself, but trying to
> figure out the best workflow for one of our devs to push cookbook
> updates...
> 
> Right now I'm thinking:
> git push to github
> go to chef management console
> push button that runs rake install in the local repository
> 
> but since modifying the management console is out of scope for the
> time being... i'm thinking up alternatives.
> 
> Thanks!
> -Jesse
> 
> 2012/4/7 Juan Jesús Ojeda Croissier 
> < >:
>> 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.

§