chef-datadog icon indicating copy to clipboard operation
chef-datadog copied to clipboard

Let the agent set the default hostname

Open remh opened this issue 9 years ago • 4 comments

The hostname logic in the agent is more reliable

Defaulting to the node name can create some issues as the chef node name can be based on the ip of the machine that could get recycled.

remh avatar Oct 16 '15 16:10 remh

Will the agent detect a chef node name?

miketheman avatar Oct 16 '15 17:10 miketheman

It will use the instanceid in case of EC2/Google Cloud, then default on the machine hostname.

remh avatar Oct 16 '15 18:10 remh

cc: @DBLaw

remh avatar Oct 16 '15 18:10 remh

@remh Thanks, I think I get it. I think this might have to wait until 3.0.0, as the change removes the default setting of an attribute to nil, something that was defined in the CVP as a major change. Ref: http://chef-community.github.io/cvp/

Considering that anyone wanting to "remove" this can override the attribute with their choice, using node.fqdn, node.hostname or any other value, or even apply a node.rm('datadog', 'hostname') (ref) as a workaround, I think we should leave this until the next Major release.

miketheman avatar Oct 17 '15 02:10 miketheman