summaryrefslogtreecommitdiffstats
path: root/lib/facter/fqdn.rb
blob: 1fcc764d76bef2141f8bd8c81b967cde195717ae (plain)
1
2
3
4
5
6
7
8
9
10
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