projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58296c
)
add php5 fact
author
Stephen Gran
<steve@lobefin.net>
Fri, 5 Feb 2010 00:15:35 +0000
(
00:15
+0000)
committer
Stephen Gran
<steve@lobefin.net>
Fri, 5 Feb 2010 00:16:58 +0000
(
00:16
+0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
facts/software.rb
patch
|
blob
|
history
diff --git
a/facts/software.rb
b/facts/software.rb
index
f7f7abc
..
2f2f1fa
100644
(file)
--- 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