From f72b3ae56fa0039aa08bccc1da8356a8c2bfdded Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 25 Mar 2014 19:02:06 -0300 Subject: Deploy exim plugins only if munin is enabled --- manifests/subsystem/mail.pp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'manifests') diff --git a/manifests/subsystem/mail.pp b/manifests/subsystem/mail.pp index 0cbef91..c3eda4c 100644 --- a/manifests/subsystem/mail.pp +++ b/manifests/subsystem/mail.pp @@ -1,6 +1,8 @@ class nodo::subsystem::mail { # Email delivery configuration $mail_delivery = hiera('nodo::subsystem::mail::delivery', 'exim') + $munin = hiera('nodo::host::use_munin', True) + case $mail_delivery { 'tunnel': { $mail_hostname = hiera('nodo::subsystem::mail::hostname') @@ -12,9 +14,11 @@ class nodo::subsystem::mail { '','exim',default: { include exim::tls - munin::plugin { [ 'exim_mailqueue', 'exim_mailstats' ]: - ensure => present, - config => 'user Debian-exim', + if $munin == true { + munin::plugin { [ 'exim_mailqueue', 'exim_mailstats' ]: + ensure => present, + config => 'user Debian-exim', + } } } } -- cgit v1.2.3