aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/role/mail.pp18
1 files changed, 17 insertions, 1 deletions
diff --git a/manifests/role/mail.pp b/manifests/role/mail.pp
index 717d57f..f486313 100644
--- a/manifests/role/mail.pp
+++ b/manifests/role/mail.pp
@@ -1,8 +1,24 @@
class nodo::role::mail {
class { [ 'nodo::role::vserver', 'mail::system' ]: }
+ # Config parameters
+ $delivery = hiera('nodo::subsystem::mail::delivery', 'exim')
+ $virtual = hiera('mail::virtual', false)
+
# Graph postfix
munin::plugin { [ 'postfix_mailqueue', 'postfix_mailstats' ]:
- ensure => present,
+ ensure => $delivery ? {
+ 'postfix' => present,
+ default => absent,
+ },
+ }
+
+ # Graph mysql
+ munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]:
+ config => "user root",
+ ensure => $virtual ? {
+ true => present,
+ default => absent,
+ },
}
}