From f444fc8937a6bc05d0257c1a935e742491e94b02 Mon Sep 17 00:00:00 2001 From: "Mark T. Voelker" Date: Thu, 17 Apr 2014 03:16:00 -0400 Subject: [PATCH] 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 --- manifests/db/mysql/host_access.pp | 2 ++ 1 file changed, 2 insertions(+) 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}"] } -- 2.45.2