aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-25 19:02:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-25 19:02:06 -0300
commitf72b3ae56fa0039aa08bccc1da8356a8c2bfdded (patch)
tree508f1d925e71aed8d65c7a502b7be39548cd5bb0 /manifests/subsystem
parent93724a601eebabec0a7569b34e8fe7cc33715fec (diff)
downloadpuppet-nodo-f72b3ae56fa0039aa08bccc1da8356a8c2bfdded.tar.gz
puppet-nodo-f72b3ae56fa0039aa08bccc1da8356a8c2bfdded.tar.bz2
Deploy exim plugins only if munin is enabled
Diffstat (limited to 'manifests/subsystem')
-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',
+ }
}
}
}