]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
Add table to mysql_grant call
authorMark T. Voelker <mvoelker@cisco.com>
Thu, 17 Apr 2014 07:16:00 +0000 (03:16 -0400)
committerMark T. Voelker <mvoelker@cisco.com>
Thu, 17 Apr 2014 07:17:35 +0000 (03:17 -0400)
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

manifests/db/mysql/host_access.pp

index cabf2deb03b19a8902a0b106db80a5fcbad6d5a9..9869f99499c4c128e737de877e1f32e6b4f0befc 100644 (file)
@@ -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}"]
     }