X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fsoftware.rb;h=fed40d8acfbe31966802eaf9dc1d858ed97961db;hb=d1204bce7a6261355fc781f660c722b849b22092;hp=202543b40671c89ae6bd296c7ea359ba88845460;hpb=13b7c9f8eeaf7574356c992494f4d7641ebdca71;p=mirror%2Fdsa-puppet.git diff --git a/facts/software.rb b/facts/software.rb index 202543b40..fed40d8ac 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("policydweight") do + setcode do + FileTest.exist?("/usr/sbin/policyd-weight") + end +end