From 388cf7c3df7ce26e953949ed6fe63d76cbbb3691 Mon Sep 17 00:00:00 2001 From: John Ferlito Date: Fri, 14 Mar 2008 13:58:24 +1100 Subject: Regression in :node_name functionality When :node_name="cert" is specified the 'hostname' fact should be set to the SSL certificate common name instead of the results from facter. I've extended this to also set 'domain' and 'fqdn' since that makes a lot of sense to me. This fixes a regression introduced in SVN#1673 --- lib/puppet/network/handler/master.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/puppet/network/handler') diff --git a/lib/puppet/network/handler/master.rb b/lib/puppet/network/handler/master.rb index 8d84fe8b8..3e004046e 100644 --- a/lib/puppet/network/handler/master.rb +++ b/lib/puppet/network/handler/master.rb @@ -81,6 +81,8 @@ class Puppet::Network::Handler clientip = facts["ipaddress"] if Puppet[:node_name] == 'cert' if name + facts["fqdn"] = client + facts["hostname"], facts["domain"] = client.split('.', 2) client = name end if ip -- cgit