From: Mark T. Voelker Date: Thu, 17 Apr 2014 07:16:00 +0000 (-0400) Subject: Add table to mysql_grant call X-Git-Tag: 4.0.0~4 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f444fc8937a6bc05d0257c1a935e742491e94b02;p=puppet-modules%2Fpuppet-ceilometer.git Add table to mysql_grant call When using puppetlabs-mysql 2.2 with the ceilometer module, an error occurs due to a call to mysql_grant not specifying a table. This patch corrects the error by rectifying the mysql_grant call. Change-Id: I0619446907c5fb51dcdb6e5717faeb61442c699b Closes-Bug: #1308884 --- diff --git a/manifests/db/mysql/host_access.pp b/manifests/db/mysql/host_access.pp index cabf2de..9869f99 100644 --- a/manifests/db/mysql/host_access.pp +++ b/manifests/db/mysql/host_access.pp @@ -25,6 +25,8 @@ define ceilometer::db::mysql::host_access ($user, $password, $database, $mysql_m mysql_grant { "${user}@${name}/${database}": privileges => 'all', provider => 'mysql', + table => "${database}.*", + user => "${user}@${name}", require => Mysql_user["${user}@${name}"] }