diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-19 23:04:32 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-03-19 23:04:32 +0000 |
| commit | 474b86c921e3fa17ffd48c3b846b2e5f3dc70640 (patch) | |
| tree | c72e2021c49fcb6bd8930eefca5ed6f00b24775e /lib/puppet/network/handler | |
| parent | 90d8b2dfb123b42a2b1fc6104ae5d63be635bdb5 (diff) | |
| download | puppet-474b86c921e3fa17ffd48c3b846b2e5f3dc70640.tar.gz puppet-474b86c921e3fa17ffd48c3b846b2e5f3dc70640.tar.xz puppet-474b86c921e3fa17ffd48c3b846b2e5f3dc70640.zip | |
Hopefully the last batch of commits before I release 0.22.2. Mostly just get tests to pass.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2334 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/network/handler')
| -rw-r--r-- | lib/puppet/network/handler/master.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet/network/handler/master.rb b/lib/puppet/network/handler/master.rb index c728638b2..1082d3aaa 100644 --- a/lib/puppet/network/handler/master.rb +++ b/lib/puppet/network/handler/master.rb @@ -33,6 +33,15 @@ class Puppet::Network::Handler Puppet.warning "Could not retrieve fact %s" % fact end end + + if facts["servername"].nil? + host = Facter.value(:hostname) + if domain = Facter.value(:domain) + facts["servername"] = [host, domain].join(".") + else + facts["servername"] = host + end + end end # Manipulate the client name as appropriate. |
