aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/role/mail.pp7
-rw-r--r--manifests/role/web.pp7
2 files changed, 10 insertions, 4 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,
diff --git a/manifests/role/web.pp b/manifests/role/web.pp
index c4aa890..b01cb00 100644
--- a/manifests/role/web.pp
+++ b/manifests/role/web.pp
@@ -10,9 +10,12 @@ class nodo::role::web inherits nodo::base::vserver {
ensure => present,
}
- munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]:
+ package { 'libcache-cache-perl': # needed by munin mysql plugin
ensure => present,
- config => "user root",
+ }
+ munin::plugin { [ 'mysql_', 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]:
+ ensure => present,
+ config => 'user root\nenv.mysqluser debian-sys-maint\nenv.mysqlconnection DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf',
}
# Classes for web nodes