Add morricone
[mirror/dsa-puppet.git] / facts / mta.rb
1 Facter.add("mta") do
2         setcode do
3                 mta = "exim4"
4                 if FileTest.exist?("/usr/sbin/postfix")
5                         mta = "postfix"
6                 end
7                 mta
8         end
9 end
10
11 Facter.add("exim_ssl_certs") do
12         setcode do
13                 FileTest.exist?("/etc/exim4/ssl/") &&
14                 FileTest.exist?("/etc/exim4/ssl/ca.crl") &&
15                 FileTest.exist?("/etc/exim4/ssl/thishost.crt") &&
16                 FileTest.exist?("/etc/exim4/ssl/ca.crt") &&
17                 FileTest.exist?("/etc/exim4/ssl/thishost.key")
18         end
19 end