Sha256: 15a9c9e780ca12908ab6d8310a91f94c5570cd6d4164f3e42fe7d072a57d92fb
Contents?: true
Size: 542 Bytes
Versions: 99
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
99 entries across 99 versions & 2 rubygems