The default client.rb setting for node_name is "what Ohai determined to
be the FQDN of the node"
In our environment, this causes a total mess. Due to many factors
outside of our control:
* node['fqdn'] for some nodes is of the form: foo
* node['fqdn'] for some nodes is of the form: foo.DOMAIN
* node['fqdn'] for some nodes is of the form: foo.domain
That's a real party when using knife, let me tell you.
Because of this, we clearly want to normalize our node *object* names.
How does one reference the current node object in client.rb so that I
can effectively do something like:
def site_normalize
# stuff
end
node_name site_normalize(the_node_fqdn)
Archive powered by MHonArc 2.6.16.