fuel-library/deployment/puppet/l23network/lib/facter/fqdn_hostname.rb
2013-02-18 21:00:20 +04:00

10 lines
194 B
Ruby

# Fact: l3_fqdn_hostname
#
# Purpose: Return FQDN or hostname if FQDN undefined
#
Facter.add(:l3_fqdn_hostname) do
setcode do
rv = Facter.value(:fqdn) || Facter.value(:hostname)
end
end