Sha256: 922d364501726a123b1ef499dfddbf69669ca0a74a127c7522ba39c5610423c1
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
# Fact: osfamily # # Purpose: Returns the operating system # # Resolution: # Maps operating systems to operating system families, such as linux # distribution derivatives. Adds mappings from specific operating systems # to kernels in the case that it is relevant. # # Caveats: # This fact is completely reliant on the operatingsystem fact, and no # heuristics are used # Facter.add(:osfamily) do setcode do case Facter.value(:operatingsystem) when "RedHat", "Fedora", "CentOS", "Scientific", "SLC", "CloudLinux", "OracleLinux", "OVS", "OEL" "RedHat" when "Ubuntu", "Debian" "Debian" when "SLES", "SLED", "OpenSuSE", "SuSE" "Suse" when "Solaris" "Solaris" else Facter.value("kernel") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facter-1.6.2 | lib/facter/osfamily.rb |