[chef] Re: Re: Triggering remote actions based on new nodes


Chronological Thread 
  • From: "H. Wade Minter" < >
  • To:
  • Subject: [chef] Re: Re: Triggering remote actions based on new nodes
  • Date: Wed, 27 Jun 2012 17:02:07 -0400

Is there a way to notify the DB server "Hey, we just added a new web node, you should rebuild your rules now" as part of the web node role?

____________________________________________________________
H. Wade Minter  |  Director of Engineering
TeamSnap: The smartest, easiest way to manage your team online
phone: 720.496.1053  |  fax: 815.550.2938
" target="_blank">   

On Jun 27, 2012, at 4:58 PM, Charles Sullivan wrote:

You should use Chef Search   to do this.  Have your DB server look for servers to add rules for based on any criteria you want...  

--Charles

On Wed, Jun 27, 2012 at 3:55 PM, H. Wade Minter < " target="_blank"> > wrote:
Hi folks,

I've looked around to find answers on this, but haven't been successful, so apologies if it's a FAQ.

We're automating the buildout of a Rails application with Chef, migrating from a partially-implemented Puppet installation.  Things are going well, but we're reaching the endgame and would like to remove a few last manual steps.

We have tools in place to build and configure a node.  However, when a new node comes online, we have a few things that need to happen on other systems.  We need firewall rules updated on database and memcache servers, and we also need MySQL GRANT statements run to allow the node to connect to the database.

Is there a way to have that happen - to notify the memcache servers to update their firewall rules, run statements on the MySQL server, etc?  It seems like this problem would be solved in terms of helping automate scale out, but we haven't found the answer yet.

--Wade

____________________________________________________________
H. Wade Minter  |  Director of Engineering
TeamSnap: The smartest, easiest way to manage your team online
phone: 720.496.1053  |  fax: 815.550.2938
" target="_blank">   




--
Charles Sullivan
" target="_blank">





Archive powered by MHonArc 2.6.16.

§