Cannot find a resource for grant_statement on centos version 6.3


#1

I am working on getting the gitlab cookbook from source, not the latest
published version, working with chef-solo. I have gotten to the point
where it is trying to grant permissions to a mysql user where it fails:

In /etc/chef/chef-solo-1/cookbooks/gitlab/recipes/mysql.rb

56: mysql_database_user database_user do
57: connection database_connection
58: database_name database
59: action :grant
60: end

[2012-12-27T20:58:20+00:00] DEBUG: Re-raising exception: NameError -
mysql_database_user[gitlab] (gitlab::mysql line 56) had an error:
NameError: Cannot find a resource for grant_statement on centos version 6.3

I am at a loss as to why this is failing. Can I get a clue?

Thanks,


Jay Flowers

http://jayflowers.com


#2

Looks like this might be an open issue, see:
http://tickets.opscode.com/browse/COOK-2117

On Fri, Dec 28, 2012 at 11:23 AM, Jay Flowers jay.flowers@gmail.com wrote:

I am working on getting the gitlab cookbook from source, not the latest
published version, working with chef-solo. I have gotten to the point where
it is trying to grant permissions to a mysql user where it fails:

In /etc/chef/chef-solo-1/cookbooks/gitlab/recipes/mysql.rb

56: mysql_database_user database_user do
57: connection database_connection
58: database_name database
59: action :grant
60: end

[2012-12-27T20:58:20+00:00] DEBUG: Re-raising exception: NameError -
mysql_database_user[gitlab] (gitlab::mysql line 56) had an error: NameError:
Cannot find a resource for grant_statement on centos version 6.3

I am at a loss as to why this is failing. Can I get a clue?

Thanks,


Jay Flowers

http://jayflowers.com