zobel wants to know which version of syslogng we run
authorMartin Zobel-Helas <zobel@debian.org>
Sat, 19 Jun 2010 13:08:05 +0000 (15:08 +0200)
committerMartin Zobel-Helas <zobel@debian.org>
Sat, 19 Jun 2010 13:08:05 +0000 (15:08 +0200)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
facts/software.rb

index 156d133..e622d35 100644 (file)
@@ -67,3 +67,8 @@ Facter.add("php5suhosin") do
                FileTest.exist?("/usr/lib/php5/20060613+lfs/suhosin.so")
        end
 end
+Facter.add("syslogversion") do
+       setcode do
+               %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1}.chomp
+       end
+end