module-puppetlabs-mysql/manifests/server/monitor.pp

19 lines
575 B
ObjectPascal
Raw Normal View History

class mysql::server::monitor (
$mysql_monitor_username,
$mysql_monitor_password,
$mysql_monitor_hostname
) {
2011-05-25 08:22:43 +02:00
mysql_user{
"${mysql_monitor_username}@${mysql_monitor_hostname}":
password_hash => mysql_password($mysql_monitor_password),
ensure => present,
require => Service['mysqld'],
}
mysql_grant { "${mysql_monitor_username}@${mysql_monitor_hostname}":
privileges => [ 'process_priv', 'super_priv' ],
require => [ Mysql_user["${mysql_monitor_username}@${mysql_monitor_hostname}"], Service['mysqld']],
}
}