lib/facter/architecture.rb in facter-1.5.9 vs lib/facter/architecture.rb in facter-1.6.0
- old
+ new
@@ -1,4 +1,17 @@
+# Fact: architecture
+#
+# Purpose:
+# Return the CPU hardware architecture.
+#
+# Resolution:
+# On OpenBSD, Linux and Debian's kfreebsd, use the hardwaremodel fact.
+# Gentoo and Debian call "x86_86" "amd64".
+# Gentoo also calls "i386" "x86".
+#
+# Caveats:
+#
+
Facter.add(:architecture) do
confine :kernel => [:linux, :"gnu/kfreebsd"]
setcode do
model = Facter.value(:hardwaremodel)
case model