Sha256: 40d42b651f94c5454effe9723aac26a72b9d5e121b7f1a7583d6d0e521c8c9c1
Contents?: true
Size: 789 Bytes
Versions: 12
Compression:
Stored size: 789 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", "Ascendos", "CloudLinux", "PSBM", "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
12 entries across 12 versions & 2 rubygems