ZJE
unread,Jul 24, 2012, 1:59:01 PM7/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?