Closed snayakie closed 9 years ago
I run a container with a --name . But the node that appears in the Chef Server is always showing the container's 12-char ID. Is there any way to show its name, by putting something else in chef/client.rb instead of ChefInit.node_name ?
Check out the inline documentation on how to set node_name with ChefInit.node_name: https://github.com/opscode/chef-init/blob/master/lib/chef-init.rb
Got it working with CHEF_NODE_NAME. Thanks.
I run a container with a --name. But the node that appears in the Chef Server is always showing the container's 12-char ID. Is there any way to show its name, by putting something else in chef/client.rb instead of ChefInit.node_name ?