Is there a wildcard for the value_for_platform function? Specifically, I'm interested in the version field; rather than specifying the specific CentOS version, I would like to specify "all Centos 7 versions". Unfortunately, Ohai reports a *very* specific version number (in my case, 7.0.1406) which means that my code would break as soon as a new build comes out.
What I am trying to accomplish is something like this:
my values = value_for_platform(
%w{ centos redhat } => {
"7.x" =>[ values for Centos 7 ]
"default" => [ values for Centos 5 and 6 ]
},
"default" => { "default" => %w{} }
)
Thanks!
Kevin Keane
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html
Archive powered by MHonArc 2.6.16.