Issue #2063 has been updated by jamtur01.

Target version changed from 1.6.0 to 1.5.5


----------------------------------------
Feature #2063: Add fact for kernel major version number
http://projects.reductivelabs.com/issues/2063

Author: ohookins
Status: Closed
Priority: Normal
Assigned to: 
Category: library
Target version: 1.5.5
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to