From b4faf3946ea0e8e2b4419145c705287d3ef1627b Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Thu, 5 Mar 2009 20:44:14 +0000 Subject: [PATCH] Hopefully now we can install puppet on postfix systems without hosing the mta setup Signed-off-by: Stephen Gran --- facts/mta.rb | 9 +++++++++ manifests/site.pp | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 facts/mta.rb diff --git a/facts/mta.rb b/facts/mta.rb new file mode 100644 index 000000000..5d2242a61 --- /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 6a6948c85..4758621b3 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: {} + } } -- 2.20.1