Sha256: 8c222cddf43fe3f7f96a98af6e849a4979c800ae2745eda957abb832c7e4ac07
Contents?: true
Size: 601 Bytes
Versions: 3
Compression:
Stored size: 601 Bytes
Contents
Facter.add(:architecture) do confine :kernel => :linux setcode do model = Facter.value(:hardwaremodel) case model # most linuxen use "x86_64" when "x86_64" case Facter.value(:operatingsystem) when "Debian", "Gentoo" "amd64" else model end when /(i[3456]86|pentium)/ case Facter.value(:operatingsystem) when "Gentoo" "x86" else "i386" end else model end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.7 | lib/facter/architecture.rb |
facter-1.5.6 | lib/facter/architecture.rb |
facter-1.5.5 | lib/facter/architecture.rb |