chef-boneyard / knife-container

DEPRECATED: Container support for Chef's Knife Command
Apache License 2.0
57 stars 11 forks source link

Container's name does not appear in Chef Server 'node' #45

Closed snayakie closed 9 years ago

snayakie commented 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 ?

tduffield commented 9 years ago

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

snayakie commented 9 years ago

Got it working with CHEF_NODE_NAME. Thanks.