Sha256: f26b50e79a8fac278aaeec15ff466b5817addfb6ec6f4711828f58669c0b0e20
Contents?: true
Size: 503 Bytes
Versions: 102
Compression:
Stored size: 503 Bytes
Contents
# Fact: kernelversion # # Purpose: Return the operating system's kernel version. # # Resolution: # On Solaris and SunOS based machines, returns the output of `uname -v`. # Otherwise returns the kernerlversion fact up to the first `-`. This may be # the entire kernelversion fact in many cases. # # Caveats: # Facter.add("kernelversion") do setcode do Facter['kernelrelease'].value.split('-')[0] end end Facter.add("kernelversion") do confine :kernel => :sunos setcode 'uname -v' end
Version data entries
102 entries across 102 versions & 3 rubygems