Sha256: dc0d292c9f8c189e90ecee811ac985f230267b5afa5f991f61848907e58ae00a
Contents?: true
Size: 542 Bytes
Versions: 4
Compression:
Stored size: 542 Bytes
Contents
# Fact: fqdn # # Purpose: Returns the fully qualified domain name of the host. # # Resolution: Simply joins the hostname fact with the domain name fact. # # Caveats: No attempt is made to check that the two facts are accurate or that # the two facts go together. At no point is there any DNS resolution made # either. # Facter.add(:fqdn) do setcode do host = Facter.value(:hostname) domain = Facter.value(:domain) if host and domain [host, domain].join(".") elsif host host else nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facter-2.1.0 | lib/facter/fqdn.rb |
facter-2.1.0-x86-mingw32 | lib/facter/fqdn.rb |
facter-2.1.0-x64-mingw32 | lib/facter/fqdn.rb |
facter-2.1.0-universal-darwin | lib/facter/fqdn.rb |