[chef] Re: RE: Re: Single Chef client for configuring multiple nodes


Chronological Thread 
  • From: aditya nitsure < >
  • To: Daniel Oliver < >, AJ Christensen < >, chef < >
  • Subject: [chef] Re: RE: Re: Single Chef client for configuring multiple nodes
  • Date: Tue, 19 Mar 2013 09:18:58 +0000 (GMT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=5clqmdh1uTQacMzxMS1bGLLRhZLUnXdlU43W5OCNnkGAwwfd6xYx3CRAkqZWGKhB67zIijULBapo3/8+qflAPt+ZFXT9k1+E9Yo+YwUX1+AapH6w23vkkQTpxb/sjmeEgFMQz76OlVO3jvXpJ64k6YRDHxG1Hv4jL+cu75P3bWE=;


As stated by Dan i.e.  "node_name is used to lookup the key it should match against on the server"
Does node_name & node_path make any sence to chef-solo? or its only chef client-server feature?

If I want to use chef-solo to configure multiple virtual nodes, can I control it using node_name & node_path. e.g. keeping different configuration (JSON file) for different virtual nodes at its respective path?
 Regards,
Aditya Nitsure



From: Daniel Oliver < >
To: AJ Christensen < >; chef < >
Sent: Thursday, 28 February 2013 6:04 PM
Subject: [chef] RE: Re: Single Chef client for configuring multiple nodes

I tried to do something like this recently, and couldn't make it work.  In my setup, I am only interested in using chef-client to populate attributes so that the unmanaged nodes show up in searches.

My understanding is that node_name is used to lookup the key it should match against on the server, even if the key being used is for an admin client.  Certainly, whenever I change the node_name and use an administrative key I get a 401 back.

At present, I have resorted to a having a script that registers for each of these nodes and runs chef-client for each node to keep the published attributes up-to-date.  If it can be done more cleanly, that would be great.

Thanks,
Dan.

-----Original Message-----
From: AJ Christensen [mailto: " href="mailto: "> ]
Sent: 28 February 2013 06:43
To: chef
Subject: [chef] Re: Single Chef client for configuring multiple nodes

Just use --node-name or an alternate configuration file (pointing to the same client pem, with a different node_name).

Works great! I've never found a use for it; we always thought people might create a client that was responsible for multiple virtual nodes, e.g. switches that weren't running Chef or something along those lines.

--AJ

On 28 February 2013 19:31,  < " href="mailto: "> > wrote:
> Hi,
>
> Found this statement in the Chef client documentation... "A single
> Chef Client can run recipes for multiple Nodes". But I could not find
> any further documentation or supporting description which talks about how this is possible.
>
> Any one has tried this? Is there any in-built support for enabling a
> single client to configure multiple nodes ?
>
> Any info on this regard will be very helpful.
>
> Thanks,
> Saritha




  • [chef] Re: RE: Re: Single Chef client for configuring multiple nodes, aditya nitsure, 03/19/2013

Archive powered by MHonArc 2.6.16.

§