Sha256: d632eb91b4da8542d1b58082710ffbe550d34036401cb87a4cea7cf5855a2cd1
Contents?: true
Size: 428 Bytes
Versions: 48
Compression:
Stored size: 428 Bytes
Contents
# Fact: hardwareisa # # Purpose: # Returns hardware processor type. # # Resolution: # On Solaris, AIX, Linux and the BSDs simply uses the output of "uname -p" # On HP-UX, "uname -m" gives us the same information. # # Caveats: # Some linuxes return unknown to uname -p with relative ease. # Facter.add(:hardwareisa) do if Facter.value(:kernel) == 'HP-UX' setcode 'uname -m' else setcode 'uname -p' end end
Version data entries
48 entries across 48 versions & 2 rubygems