krenek/vitry are buildds for archive rebuilds
[mirror/dsa-puppet.git] / facts / software.rb
index 233acc5..e622d35 100644 (file)
@@ -48,3 +48,27 @@ Facter.add("vsftpd") do
                FileTest.exist?("/usr/sbin/vsftpd")
        end
 end
+Facter.add("spamd") do
+       setcode do
+               FileTest.exist?("/usr/sbin/spamd")
+       end
+end
+Facter.add("php5") do
+       setcode do
+               FileTest.exist?("/usr/lib/apache2/modules/libphp5.so") or
+               FileTest.exist?("/usr/bin/php5") or
+               FileTest.exist?("/usr/bin/php5-cgi") or
+               FileTest.exist?("/usr/lib/cgi-bin/php5")
+       end
+end
+Facter.add("php5suhosin") do
+       setcode do
+               FileTest.exist?("/usr/lib/php5/20060613/suhosin.so") or
+               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