puppet header for syslog-ng.conf
[mirror/dsa-puppet.git] / facts / software.rb
index 233acc5..156d133 100644 (file)
@@ -48,3 +48,22 @@ 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