puppet - vagrant puppetlabs-mysql Mysql_grant failed -


i want use vagrant, , defined following puppet file: http://pastebin.com/gfjk1zis

when vagrant tries install modules works expected. when tries configure mysql, error:

 error: validation of mysql_grant[${username}@%/${db_name}.*] failed: name must match user , table parameters 

what can do?

as far can tell due line in puppetlabs_mysql module

https://github.com/puppetlabs/puppetlabs-mysql/commit/07b661dcea926981cf5cd1c703a1c982d6eb6ef1

i don't know have change

there problem mysql_grants definition. fails on following test:

fail('name must match user , table parameters') if self[:name] != "#{self[:user]}/#{self[:table]}" 

error message explains wrong. name of grant resource must match user , table. change:

  '${username}@%/${db_name}.*' => {     ...     table      => "${db_name}.*",     user       => "${username}@%",   } 

to

  "${username}@%/${db_name}.*" => {     ...     table      => "${db_name}.*",     user       => "${username}@%",   } 

single quoted strings not interpolate variables in puppet.

update: there lot of style issues. mixing single quotes strings, double quotes strings. use puppet-lint improve style of code.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -