puppetlabs/puppetlabs-mysql — pull request #59 by runningman (2012-04-21 06:47:47+00:00)
Title: Allow wildcard host assignment with sql.

Since mysql:db requires class mysql::server, we assume to run all commands as the root mysql user against the local mysql server. Therefore, Exec["${name}-import"] can be simplified and will also succeed with the following wildcard host assignment:

mysql::db { 'mydb':
user => 'myuser',
password => 'mypass',
host => '%',
grant => ['all'],
sql => '/path/to/file.sql',
}