Sha256: 17b9618ed58729bc6d1737cd2cec602401dfec8dd8c61c9ac29154cab27ad64d
Contents?: true
Size: 778 Bytes
Versions: 2
Compression:
Stored size: 778 Bytes
Contents
Facter.add(:architecture) do confine :kernel => [:linux, :"gnu/kfreebsd"] setcode do model = Facter.value(:hardwaremodel) case model # most linuxen use "x86_64" when "x86_64" case Facter.value(:operatingsystem) when "Debian", "Gentoo", "GNU/kFreeBSD" "amd64" else model end when /(i[3456]86|pentium)/ case Facter.value(:operatingsystem) when "Gentoo" "x86" else "i386" end else model end end end Facter.add(:architecture) do confine :kernel => :openbsd setcode do architecture = Facter.value(:hardwaremodel) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facter-1.5.9 | lib/facter/architecture.rb |
facter-1.5.8 | lib/facter/architecture.rb |