aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/mail.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/role/mail.pp')
-rw-r--r--manifests/role/mail.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/role/mail.pp b/manifests/role/mail.pp
index 7264c29..f12bbcf 100644
--- a/manifests/role/mail.pp
+++ b/manifests/role/mail.pp
@@ -15,8 +15,11 @@ class nodo::role::mail {
}
# Graph mysql
- munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]:
- config => "user root",
+ package { 'libcache-cache-perl': # needed by munin mysql plugin
+ ensure => present,
+ }
+ munin::plugin { [ 'mysql_', 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]:
+ config => 'user root\nenv.mysqluser debian-sys-maint\nenv.mysqlconnection DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf',
ensure => $virtual ? {
true => present,
default => absent,