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


Chronological Thread 
  • From: Vincent Jorgensen < >
  • To: "< >" < >
  • Subject: [chef] Re: How to trigger up auto configuration upgrade by chef!
  • Date: Mon, 26 Dec 2011 17:39:06 +0000
  • Accept-language: en-US

Without knowing too many specifics about your application, it's hard to say 
exactly what will work for you. But what's I've done in this.

I make sure that every node has multiple distinct roles.  Then, all I need to 
so is this on the chef server:
# knife ssh "role:production" chef-client   # Upgrade every production server
# knife ssh "role:haproxy" chef-client      # Only upgrade the haproxy servers
# knife ssh "role:ftpd AND role:development"   # Only upgrade the ftp servers 
in the development environment

These can be scripted on the chef server and put into cron, if you like.

Good luck!

Vincent

On Dec 26, 2011, at 12:40 AM, 
< >
 
< >
 wrote:

> hi, Everyone
> 
>  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.
> 
> Cindia




Archive powered by MHonArc 2.6.16.

§