Sha256: bf6f55660b82a318d1fc04d5cec70e53329b450c8748f382ed2e901e4c8d5f6a
Contents?: true
Size: 800 Bytes
Versions: 25
Compression:
Stored size: 800 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", "Nexenta" "Solaris" else Facter.value("kernel") end end end
Version data entries
25 entries across 25 versions & 2 rubygems