X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fmta.rb;h=98ed4338c8a40132066db9fa29b009c34d2fa41e;hb=5700593c5c0a7d7b98a435b22738ce46b4b67013;hp=5d2242a6130006181f59a92c14d11b83f6c191e1;hpb=b4faf3946ea0e8e2b4419145c705287d3ef1627b;p=mirror%2Fdsa-puppet.git diff --git a/facts/mta.rb b/facts/mta.rb index 5d2242a61..98ed4338c 100644 --- a/facts/mta.rb +++ b/facts/mta.rb @@ -7,3 +7,13 @@ Facter.add("mta") do mta end end + +Facter.add("exim_ssl_certs") do + setcode do + FileTest.exist?("/etc/exim4/ssl/") && + FileTest.exist?("/etc/exim4/ssl/ca.crl") && + FileTest.exist?("/etc/exim4/ssl/thishost.crt") && + FileTest.exist?("/etc/exim4/ssl/ca.crt") && + FileTest.exist?("/etc/exim4/ssl/thishost.key") + end +end