Issue #2063 has been reported by ohookins.
----------------------------------------
Feature #2063: Add fact for kernel major version number
http://projects.reductivelabs.com/issues/2063
Author: ohookins
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Keywords:
Rather than get the full version like "2.6.17" it would be handy to have just
the major revision, e.g. "2.6".
This code should do it:
<pre>
Facter.add("kernelmajorversion") do
setcode do
Facter['kernelversion'].value.split('.')[0..1].join('.')
end
end
</pre>
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---