723a3affa1
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
19 lines
567 B
Puppet
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}"],
|
|
}
|
|
|
|
}
|