- From: Jeff Blaine <
>
- To:
- Subject: [chef] Possibilities for node_name in Chef client configuration
- Date: Mon, 09 Jun 2014 10:45:36 -0400
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)
- [chef] Possibilities for node_name in Chef client configuration, Jeff Blaine, 06/09/2014
Archive powered by MHonArc 2.6.16.