puppetlabs/facter — pull request #724 by whopper (2014-07-09 23:42:32+00:00)
Title: (FACT-613) Add structured processor fact

The first of these commits adds the 'processors' structured fact, which incorporates all processor-related facts into a nested hash. Includes keys for the equivalents of dynamic ProcessorX facts, Processor, ProcessorCount, and PhysicalProcessorCount.

In addition, the fact includes a 'ProcessorSpeed' key in OSX, which is equivalent to the existing sp_current_processor_speed fact.

The second commit refactors the existing Processor, ProcessorCount, PhysicalProcessorCount and dynamic ProcessorX flat facts to resolve by using values from the new 'processors' structured fact. This ensures that these facts will stay in sync with the new fact, while also maintaining backwards compatibility.