Sha256: 1eb893d81ef6e7acaa989d5f36589e193fe5f1548952f862c4ec7681e8ccffaa

Contents?: true

Size: 231 Bytes

Versions: 7

Compression:

Stored size: 231 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
facter-1.5.9 lib/facter/fqdn.rb
facter-1.5.8 lib/facter/fqdn.rb
facter-1.5.7 lib/facter/fqdn.rb
facter-1.5.3 lib/facter/fqdn.rb
facter-1.5.6 lib/facter/fqdn.rb
facter-1.5.4 lib/facter/fqdn.rb
facter-1.5.5 lib/facter/fqdn.rb