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?
From: Daniel Oliver Daniel.Oliver@contextis.co.uk
To: AJ Christensen firstname.lastname@example.org; chef email@example.com
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.
From: AJ Christensen [mailto:firstname.lastname@example.org]
Sent: 28 February 2013 06:43
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.
On 28 February 2013 19:31, email@example.com wrote:
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.