summaryrefslogtreecommitdiff
path: root/manifests/munin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/munin.pp')
-rw-r--r--manifests/munin.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/munin.pp b/manifests/munin.pp
index a7a862e..b1e9c26 100644
--- a/manifests/munin.pp
+++ b/manifests/munin.pp
@@ -7,16 +7,17 @@ class mysql::munin {
mysql_user{'munin@localhost':
password_hash => mysql_password("$munin_mysql_password"),
+ require => Package['mysql'],
}
mysql_grant{'munin@localhost':
privileges => 'select_priv',
- require => Mysql_user['munin@localhost'],
+ require => [ Mysql_user['munin@localhost'], Package['mysql'] ],
}
munin::plugin {
[mysql_bytes, mysql_queries, mysql_slowqueries, mysql_threads]:
config => "env.mysqlopts --user=munin --password=\"${munin_mysql_password}\" -h localhost",
- require => [ Mysql_grant['munin@localhost'], Mysql_user['munin@localhost'] ]
+ require => [ Mysql_grant['munin@localhost'], Mysql_user['munin@localhost'], Package['mysql'] ]
}
}