blob: 9d0830e1fb7b13efe607216dd0f3049661a5eb4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 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}
end
|