Given that Chef uses the host name as its primary identifier you better be careful. You should set the name during build or if you must then use a different primary key
-N, --node-name NODE_NAME The node name
for
this
client
http://wiki.opscode.com/display/chef/Chef+Client
or node_name in the client.rb
http://wiki.opscode.com/display/chef/Chef+Configuration+Settings
I have always thought the mac address would make a much better uniq id, and then use node[:fqdn] for gui / knife output.
Joshua
On 17 November 2010 19:46, < " target="_blank"> > wrote:
Is it possible to set the hostname via a recipe? If so does a cookbook exist
already, I couldnt find one before.
Cheers
Jono
Archive powered by MHonArc 2.6.16.