X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fsoftware.rb;h=156d1335cef15cf3273307e1888bf79f78796f32;hb=d8c44af16332b51e607de61369b39e04c5566e48;hp=f7f7abc4e5de5f297340be5f1664ffb3af2c9c47;hpb=9dc927dbec2a2e6048354e2b181a5e8be74f7431;p=mirror%2Fdsa-puppet.git diff --git a/facts/software.rb b/facts/software.rb index f7f7abc4e..156d1335c 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -53,3 +53,17 @@ Facter.add("spamd") 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