Sha256: d2b80970e3af7072d8f15fe4c4f27b223bd3de6fecdd7efe595ed2e444510159
Contents?: true
Size: 519 Bytes
Versions: 99
Compression:
Stored size: 519 Bytes
Contents
# Fact: osfamily # # Purpose: Returns the operating system # # Resolution: # Uses the family key of the os structured fact, which itself # 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 { Facter.value("os")["family"] } end
Version data entries
99 entries across 99 versions & 2 rubygems