X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fmta.rb;h=98ed4338c8a40132066db9fa29b009c34d2fa41e;hb=f8fb4b83fca05b20cd669683045c43950575984f;hp=5d2242a6130006181f59a92c14d11b83f6c191e1;hpb=49e6bfe2dcf619c24dd1c9fe02b336aa8c10efb1;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