2011-06-01 05:47:19 +02:00
|
|
|
class mysql::server::monitor (
|
|
|
|
$mysql_monitor_username,
|
|
|
|
$mysql_monitor_password,
|
|
|
|
$mysql_monitor_hostname
|
|
|
|
) {
|
|
|
|
|
2012-04-24 11:56:01 +02:00
|
|
|
Class['mysql::server'] -> Class['mysql::server::monitor']
|
2012-02-09 20:26:00 +01:00
|
|
|
|
|
|
|
database_user{ "${mysql_monitor_username}@${mysql_monitor_hostname}":
|
|
|
|
ensure => present,
|
2012-09-04 15:59:47 +02:00
|
|
|
password_hash => mysql_password($mysql_monitor_password),
|
2011-05-25 08:22:43 +02:00
|
|
|
}
|
2012-02-09 20:26:00 +01:00
|
|
|
|
2011-06-24 16:05:46 +02:00
|
|
|
database_grant { "${mysql_monitor_username}@${mysql_monitor_hostname}":
|
2012-02-09 20:26:00 +01:00
|
|
|
privileges => [ 'process_priv', 'super_priv' ],
|
2012-12-12 17:54:51 +01:00
|
|
|
require => Database_user["${mysql_monitor_username}@${mysql_monitor_hostname}"],
|
2011-05-25 08:22:43 +02:00
|
|
|
}
|
2012-02-09 20:26:00 +01:00
|
|
|
|
2011-05-25 08:22:43 +02:00
|
|
|
}
|