[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 3a39dd8353b6308cf49522990104cc63e55d7cda

James Turnbull james at lovedthanlost.net
Fri Jan 29 17:22:15 UTC 2010


The following commit has been merged in the upstream branch:
commit 8def362b73ffc218b68f6953bdcc3c8540caf5dd
Author: James Turnbull <james at lovedthanlost.net>
Date:   Tue Mar 10 23:05:19 2009 +1100

    Fixed #2063 - added kernelmajversion fact

diff --git a/CHANGELOG b/CHANGELOG
index 41d309c..952f88d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
 1.6.x:
+    Fixed #2063 - added kernelmajversion fact
+
     Fixed #2055 - SunoS Interface error
 
     Fixed #2044 - fixed virtual fact
diff --git a/lib/facter/kernelmajversion.rb b/lib/facter/kernelmajversion.rb
new file mode 100644
index 0000000..32fd7aa
--- /dev/null
+++ b/lib/facter/kernelmajversion.rb
@@ -0,0 +1,5 @@
+Facter.add("kernelmajversion") do
+    setcode do
+        Facter.value(:kernelversion).split('.')[0..1].join('.')
+    end
+end

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list