1 2 3 4 5 6 7 8 9 10 11
Facter.add(:fqdn) do setcode do host = Facter.value(:hostname) domain = Facter.value(:domain) if host and domain [host, domain].join(".") else nil end end end