What I am working with:
- Debian Wheezy 7.6
- Chef: 11.14.6
Up to this point, I have always used node.name to set the hostname of an instance. Example:
{
"name": "web-01",
"chef_environment": "_default",
"normal": {
"tags": [
]
},
"run_list": [
"recipe[web-server@2.0.1]"
]
}
However recently, setting the node.name from the "name" key stopped working. node.name remains as the hostname provided by my cloud provider. This occurs when running chef-client, chef-solo, and even in the chef-shell. It seems to set correctly in my client.rb, but still no node.name does not update. I tried running with the -N
flag, but still no success.
Anyone else running into this issue? How do I set node.name? Or rather how is node.name set?