X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fsoftware.rb;fp=facts%2Fsoftware.rb;h=fc922bb2bd1a6c01bcf88ea6db0653a14256a85b;hb=aeb9f273e726e45454bd3bfc9430abba90216130;hp=202543b40671c89ae6bd296c7ea359ba88845460;hpb=7569c8f545e7675a56fc711d5fa646b04031ed7a;p=mirror%2Fdsa-puppet.git diff --git a/facts/software.rb b/facts/software.rb index 202543b40..fc922bb2b 100644 --- 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