[chef] Re: Re: How to trigger up auto configuration upgrade by chef!


Chronological Thread 
  • From:
  • To:
  • Cc: , "Vincent Jorgensen \"Vincent Jorgensen" < >
  • Subject: [chef] Re: Re: How to trigger up auto configuration upgrade by chef!
  • Date: Wed, 28 Dec 2011 19:40:42 -0800 (PST)

Thanks Vincent and Brad, for your promote reply. 

From these suggestions, I think we have two ways trigger up new configuration 
to take effect on client nodes: One is SSH touch, which is active and 
triggered up by server to client; the other will be daemon client to run 
chef-client, passively accept upgrad cookbook or recipts in some period (can 
we tune this period into a tight frequency or 5mins is decided by common 
requriements?). Please correct me if I am wrong. if this is true, let us 
consider within a bigger enterprise range, is it proper for admin (possibly 
more than one) to trigger frequent SSH connection for upgrade requriements? 
Looking forward to more experience sharing here. And what happens if multiple 
admins trigger up SSH and execute upgrade at the same time? 

Many Thanks!

----- Original Message -----
From: "Brad Knowles" 
< >
To: 

Cc: "Brad Knowles" 
< >
Sent: Tuesday, December 27, 2011 4:18:13 AM
Subject: [chef] Re: How to trigger up auto configuration upgrade by chef!

On Dec 26, 2011, at 2:40 AM, 

 wrote:

>  I am trying chef for its configurtion management features. After building 
> up a system consisted of laptop, server, and client, I wonder if chef a 
> good helper to upgrade a certain configuration item on a batch of nodes 
> automatically. If possible, please provide a guidline how to do this. 
> Should I change the cookbook on server then ssh to each client to run 
> "chef-client" and trigger up the upgrade task? If any reference has come up 
> related with my goal, please help attach them to me. Thanks a lot.

Chef can do pretty much whatever you configure it to do, so it all depends on 
how you configure it.

By default, chef-client should be running every five minutes on each client, 
either as a result of installing and using the chef-client cookbook (which 
keeps a copy of chef-client running as a daemon, which will sleep five 
minutes between runs), or out of a cron job that you set up on each client.

From there, it depends on how you configure the cookbooks and recipes.  If 
you set the default run_action to be "upgrade" instead of "install", then you 
should get each machine automatically upgrading itself within five to ten 
minutes of the updated roles/cookbooks/recipes being uploaded to the 
chef-server.


One of the basic tenets that has been adopted by Chef is There Is More Than 
One Way To Do It, a.k.a., TIMTOWTDI, which is usually pronounced "Tim Toady".

Chef itself is relatively agnostic with regards to how things are done -- 
where you express your opinions on what is the "right" way to do something is 
done in the roles, cookbooks, and recipes that you deploy.

There are the community cookbooks that Opscode supports, available through 
the http://community.opscode.com/cookbooks/ website.  Each of these recipes ;
will be pretty opinionated in regards to how they think a particular task 
should be done.  I would encourage you to browse the community cookbooks and 
to learn as much as you can from them.

-- 
Brad Knowles 
< >
SAGE Level IV, Chef Level 0.0.1




Archive powered by MHonArc 2.6.16.

§