- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Environmental state
- Date: Tue, 6 Sep 2011 09:19:26 -0700
Hi,
You want to use search for this:
http://wiki.opscode.com/display/chef/Search
In your load balancing recipe, you would search for all the application
servers, and then use the results in the template that configures your load
balancer/proxy.
Best,
Adam
--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E:
On Tuesday, September 6, 2011 at 4:45 AM, Geoff Meakin Acid wrote:
>
Hi Chef community,
>
>
I am very new to chef and have succeeded in setting up a bunch of nodes how
>
I like them in chef0.10 using roles and your most excellent community
>
cookbooks
>
>
I wonder if somebody could point me towards the right way of doing the
>
following…
>
>
Suppose I have a loadbalancing http service - e.g. nginx/apache, and want
>
to loadbalance to all my nodes with the 'applicationserver' role. The
>
loadbalancer needs to know the names or IPs of those machines so that it
>
can configure itself consistently with how many appserver nodes there are.
>
As I take appservers up and down (e.g. elastically), the loadbalancer
>
should reconfigure itself accordingly.
>
>
Can someone help me by suggesting how to manage this "environmental state"
>
in chef? How can the loadbalancing node know how many nodes have the
>
'appserver' role applied to them, what they are, and use that information
>
to configure its files/templates?
>
>
Thanks in advance
>
>
--
>
>
Geoff
Archive powered by MHonArc 2.6.16.