# File lib/puppet/node.rb, line 81
 81:     def names
 82:         if Puppet.settings[:strict_hostname_checking]
 83:             return [name]
 84:         end
 85: 
 86:         names = []
 87: 
 88:         if name.include?(".")
 89:             names += split_name(name)
 90:         end
 91: 
 92:         # First, get the fqdn
 93:         unless fqdn = parameters["fqdn"]
 94:             if parameters["hostname"] and parameters["domain"]
 95:                  fqdn = parameters["hostname"] + "." + parameters["domain"]
 96:             else
 97:                  Puppet.warning "Host is missing hostname and/or domain: %s" % name
 98:             end
 99:         end
100: 
101:         # Now that we (might) have the fqdn, add each piece to the name
102:         # list to search, in order of longest to shortest.
103:         if fqdn
104:             names += split_name(fqdn)
105:         end
106: 
107:         # And make sure the node name is first, since that's the most
108:         # likely usage.
109:         #   The name is usually the Certificate CN, but it can be
110:         # set to the 'facter' hostname instead.
111:         if Puppet[:node_name] == 'cert'
112:             names.unshift name
113:         else
114:             names.unshift parameters["hostname"]
115:         end
116:         names.uniq
117:     end