From: Stephen Gran Date: Thu, 5 Mar 2009 20:44:14 +0000 (+0000) Subject: Hopefully now we can install puppet on postfix systems without hosing X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b4faf3946ea0e8e2b4419145c705287d3ef1627b;p=dsa-puppet.git Hopefully now we can install puppet on postfix systems without hosing the mta setup Signed-off-by: Stephen Gran --- diff --git a/facts/mta.rb b/facts/mta.rb new file mode 100644 index 00000000..5d2242a6 --- /dev/null +++ b/facts/mta.rb @@ -0,0 +1,9 @@ +Facter.add("mta") do + setcode do + mta = "exim4" + if FileTest.exist?("/usr/sbin/postfix") + mta = "postfix" + end + mta + end +end diff --git a/manifests/site.pp b/manifests/site.pp index 6a6948c8..4758621b 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -6,11 +6,14 @@ node default { include munin-node include samhain include debian-org - include exim case $smartarraycontroller { "true": { include debian-proliant } default: {} } + case $mta { + "exim4": { include exim } + default: {} + } }