aggregate facts

13 views
Skip to first unread message

ZJE

unread,
Jul 24, 2012, 1:59:01 PM7/24/12
to puppet...@googlegroups.com
In our environment, we publish a SKU to identify each class of server, such that a server with X CPUs, Y DIMMS, and Z disks is SKU-2012-123. I would like to create a custom fact to take this information from facter and generate these SKUs. I'm relatively new to ruby, so I'm wondering what the best way to accomplish this is. We have 20 or so of these SKUs. I was thinking of having hierarchical conditional tests based on the largest groupings, but I feel like there should be a more elegant approach that leverages existing code. For example, specifying SKUs in a series of json objects and matching those somehow.

Has anyone here solved a similar problem?
Reply all
Reply to author
Forward
0 new messages