aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/mail.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/mail.pp')
-rw-r--r--manifests/subsystem/mail.pp10
1 files changed, 7 insertions, 3 deletions
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',
+ }
}
}
}