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?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/cU0cNhiP8cQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to