From: Stephen Gran Date: Fri, 5 Feb 2010 00:15:35 +0000 (+0000) Subject: add php5 fact X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=e8ca37b8bf894ea44f0a98f56e5a082129feec25;p=mirror%2Fdsa-puppet.git add php5 fact Signed-off-by: Stephen Gran --- diff --git a/facts/software.rb b/facts/software.rb index f7f7abc4e..2f2f1faad 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -53,3 +53,11 @@ 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