puppetlabs/facter — pull request #217 by joshcooper (2012-05-22 22:31:43+00:00)
Title: (#10261) Detect x64 architecture on Windows

Previously, the hardwaremodel fact was using

RbConfig::CONFIG['host_cpu']

for Windows, but this returns i686 on a 64-bit OS, which is incorrect. And
this caused the architecture fact to be reported as i386, which is also
wrong.

This commit updates the hardwaremodel fact on Windows to return the
appropriate cpu model, e.g. x64, i686, etc. Based on that, the
architecture fact will either be x86 or x64, and can be used to install
architecture-specific packages, e.g. splunk-4.2.4-110225-x64-release.msi.