- From: Michael Hale <
>
- To: chef <
>
- Subject: [chef] Re: renaming a node
- Date: Fri, 2 Apr 2010 13:27:07 -0400
It sounds like you are talking about changing the hostname on the
nodes? Here is how I do that:
http://github.com/mikehale/cookbooks/blob/master/hostname/recipes/default.rb
On Fri, Apr 2, 2010 at 1:16 PM, John Merrells
<
>
wrote:
>
>
How would I go about renaming a node?
>
>
Before you reply that I should just give the node the right name in the
>
first place... The scenario is that I'm bootstrapping brand new machines
>
via a hosting provider api, and when the machine first starts the only name
>
it has is its ip address. Via that I get the RDNS provided by the hosting
>
provider, and use that as the initial node name. Then chef runs and
>
registers the client/node. Then the appropriate roles are applied to the
>
node and the machine is configured and starts doing its designated job.
>
But... the node now has a silly machine generated name.... it'd be nice if
>
I could easily rename them easily.
>
>
Thanks for any advice.
>
>
John
>
>
--
>
John Merrells
>
http://johnmerrells.com
>
+1.415.244.5808
>
>
>
>
>
>
>
Archive powered by MHonArc 2.6.16.