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

Version Path
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/facter-1.6.17/lib/facter/hardwareisa.rb
facter-1.6.17 lib/facter/hardwareisa.rb
facter-1.6.17.rc1 lib/facter/hardwareisa.rb
facter-1.6.16 lib/facter/hardwareisa.rb
facter-1.6.15 lib/facter/hardwareisa.rb
facter-1.6.15.rc1 lib/facter/hardwareisa.rb
facter-1.6.14 lib/facter/hardwareisa.rb
facter-1.6.14.rc1 lib/facter/hardwareisa.rb