X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=facts%2Fsoftware.rb;h=156d1335cef15cf3273307e1888bf79f78796f32;hb=fe3c81154c72b3fd5d5911fb3893021ffe6032e0;hp=fed40d8acfbe31966802eaf9dc1d858ed97961db;hpb=74f7a7a40aae37e799f2b436d45f2b5ee76ac5d2;p=dsa-puppet.git diff --git a/facts/software.rb b/facts/software.rb index fed40d8a..156d1335 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -43,3 +43,27 @@ Facter.add("policydweight") do FileTest.exist?("/usr/sbin/policyd-weight") end end +Facter.add("vsftpd") do + setcode 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