Redundancy parameter "provider => mysql" ?

asked 2014-06-19 03:58:14 -0600

François G. gravatar image

When I use mysql::db ressource, I got the error message: "Error 400 on SERVER: Invalid parameter provider at ..." So I edit the file "manifests/db.pp" and I see this line "provider => mysql".

By example at line 21: $db_resource = { ensure => $ensure, charset => $charset, collate => $collate, provider => 'mysql', require => [ Class['mysql::server'], Class['mysql::client'] ],

When I go in "/lib/puppet/provider/database/mysql.rb" the provider is already declared: "Puppet::Type.type(:database).provide(:mysql, :parent => Puppet::Provider::Mysql)"

If I remove this parameter, it works.

So is the parameter redundancy ?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

Could you post your usage of this mysql::db ? I am using this module without any problem.

doc75 gravatar imagedoc75 ( 2014-06-19 05:51:18 -0600 )edit

Of course, I apply this profile on my node: # Profile for mysql-backup class profile::mysql-backup inherits profile::default { $override_options = { 'mysqld' => { 'bind-address' => hiera('bind-address'), } } class { 'mysql::server': root_password => hiera('root_password'), override_options => $override_options, restart => true } mysql::db { 'test1': user => 'myuser1', password => 'mypass1', host => 'localhost', grant => ['SELECT', 'UPDATE'], } }

François G. gravatar imageFrançois G. ( 2014-06-19 07:18:44 -0600 )edit