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:
7569c8f
)
Some new facts
author
Stephen Gran
<steve@lobefin.net>
Sun, 15 Mar 2009 16:19:31 +0000
(16:19 +0000)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 15 Mar 2009 16:19:31 +0000
(16:19 +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
202543b
..
fc922bb
100644
(file)
--- a/
facts/software.rb
+++ b/
facts/software.rb
@@
-28,3
+28,18
@@
Facter.add("postgres83") do
FileTest.exist?("/usr/lib/postgresql/8.3/bin/postgres")
end
end
+Facter.add("postgrey") do
+ setcode do
+ FileTest.exist?("/usr/sbin/postgrey")
+ end
+end
+Facter.add("greylistd") do
+ setcode do
+ FileTest.exist?("/usr/sbin/greylistd")
+ end
+end
+Facter.add("policyd-weight") do
+ setcode do
+ FileTest.exist?("/usr/sbin/policyd-weight")
+ end
+end