summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-03-16 17:21:27 -0500
committerLuke Kanies <luke@madstop.com>2008-03-16 17:21:27 -0500
commit80f69ce86d245b45aeb93964aed9b3daca7d0d80 (patch)
treece9208d6754443fc4ff2ac1d6c735041ece6f48e /lib/puppet/network
parent8b2936861378f652b9f6b29accf3985f58b7356e (diff)
parent388cf7c3df7ce26e953949ed6fe63d76cbbb3691 (diff)
Merge commit 'johnf/0.24.x' into 0.24.x
Diffstat (limited to 'lib/puppet/network')
-rw-r--r--lib/puppet/network/handler/master.rb2
1 files changed, 2 insertions, 0 deletions
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