LarsFronius/puppet-raid — pull request #1 by jhoblitt (2012-11-20 22:02:22+00:00)
Title: add a #{dev_class}s fact that lists the name prefix for all of the devic...

...es in a class

This is needed so that the list of facts for a given device class can be
iterated over without knowing inadvice how many devices of that class are
present in the system.

As an example for the ethernet controller device class, the
'ethernet_controllers' fact is added by this patch.

ethernet_controller_0_device => 82540EM Gigabit Ethernet Controller
ethernet_controller_0_driver => e1000
ethernet_controller_0_vendor => Intel Corporation
ethernet_controller_1_device => Virtio network device
ethernet_controller_1_driver => virtio-pci
ethernet_controller_1_vendor => Red Hat, Inc
ethernet_controllers => ethernet_controller_0,ethernet_controller_1
^^^^^^^^^^^^^^^^^^^^