[chef] Re: Re: Re: Re: Approaches to automate execution of Knife command


Chronological Thread 
  • From: Martin Cleaver < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Re: Approaches to automate execution of Knife command
  • Date: Sun, 6 Jul 2014 16:15:37 -0400


Just saw chef-metal - which allows description of whole infrastructures rather than just single boxes - http://m.youtube.com/watch?v=Yb8QdL30WgM - it has drivers for vagrant and fog.


Best, M.
Sent from my iPhone

On Jul 6, 2014, at 2:12 PM, Stephen Nelson-Smith < "> > wrote:

Hi again,

On 6 July 2014 18:11, Karthik Jayaraman < "> > wrote:

In a scenario when
the web application1's load is high, we need to subscribe one instance of
VM(using knife-vsphere plugin), bootstrap chef and run the cookbooks. This
IP address should again be added to nginx server for load balancing.

So it seems like you want to be able to capture the ip address of the
new machine, and add this to the load balancer pool?  If I understand
you correctly, you can achieve this easily using search with a Chef
server.  In your loadbalancer recipe you search for machines which
function as Java app servers, and take the IP address (which ohai
knows), and use it in the template which renders your nginx config.

If you're not using a Chef server, you need to think about other ways
to make this information available - for example some kind of service
discovery system such as zookeeper could be used.

Hope that helps a little.

S.



Archive powered by MHonArc 2.6.16.

§