projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fdadd4
)
zobel wants to know which version of syslogng we run
author
Martin Zobel-Helas
<zobel@debian.org>
Sat, 19 Jun 2010 13:08:05 +0000
(15:08 +0200)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/facts/software.rb
b/facts/software.rb
index
156d133
..
e622d35
100644
(file)
--- a/
facts/software.rb
+++ b/
facts/software.rb
@@
-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