module-puppetlabs-mysql/manifests/server/monitor.pp
Nikola Petrov 723a3affa1 Update manifests/server/monitor.pp
We are using this manifest file and it cannot find *Mysql_user* please change it to *Database_user*. I suppose that this was changed after a refactoring of some sort


Best, Nikola
2012-12-12 18:54:51 +02:00

19 lines
567 B
Puppet

class mysql::server::monitor (
$mysql_monitor_username,
$mysql_monitor_password,
$mysql_monitor_hostname
) {
Class['mysql::server'] -> Class['mysql::server::monitor']
database_user{ "${mysql_monitor_username}@${mysql_monitor_hostname}":
ensure => present,
password_hash => mysql_password($mysql_monitor_password),
}
database_grant { "${mysql_monitor_username}@${mysql_monitor_hostname}":
privileges => [ 'process_priv', 'super_priv' ],
require => Database_user["${mysql_monitor_username}@${mysql_monitor_hostname}"],
}
}