summaryrefslogtreecommitdiffstats
path: root/lib/facter/hardwareisa.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facter/hardwareisa.rb')
-rw-r--r--lib/facter/hardwareisa.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/facter/hardwareisa.rb b/lib/facter/hardwareisa.rb
index 23f7d08..9d0830e 100644
--- a/lib/facter/hardwareisa.rb
+++ b/lib/facter/hardwareisa.rb
@@ -1,3 +1,15 @@
+# Fact: hardwareisa
+#
+# Purpose:
+# Returns hardware processor type.
+#
+# Resolution:
+# On Solaris, Linux and the BSDs simply uses the output of "uname -p"
+#
+# Caveats:
+# Some linuxes return unknown to uname -p with relative ease.
+#
+
Facter.add(:hardwareisa) do
setcode 'uname -p', '/bin/sh'
confine :operatingsystem => %w{Solaris Linux Fedora RedHat CentOS SuSE SLES Debian Ubuntu Gentoo FreeBSD OpenBSD NetBSD OEL OVS GNU/kFreeBSD}