Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chef mysql opscode-cookbooks desn't work: "could not find recipe ruby for cookbook mysql"

I'm tring to use https://github.com/opscode-cookbooks/mysql but when I run vagrant provision

could not find recipe ruby for cookbook mysql it returns like this.

[2014-04-23T10:13:06+00:00] ERROR: Running exception handlers
[2014-04-23T10:13:06+00:00] ERROR: Exception handlers complete
[2014-04-23T10:13:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-04-23T10:13:06+00:00] ERROR: could not find recipe ruby for cookbook mysql

================================================================================
Recipe Compile Error
================================================================================


Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe ruby for cookbook mysql

I found this then added mysql-chef_gem. https://github.com/opscode-cookbooks/mysql/blob/b5072e6ae3bd81b0f6ebec8749f2c2d781271ed9/COMPAT.md

knife cookbook site vendor mysql-chef_gem -o cookbook

But when I add recipe[crossplat::default] in run_list, and run vagrant provision it returns

[2014-04-23T10:15:14+00:00] ERROR: Cookbook crossplat not found. If you're loading crossplat from another cookbook, make sure you configure the dependency in your metadata

How can I solve that?

like image 504
yuzroz Avatar asked Apr 23 '14 10:04

yuzroz


2 Answers

There was just a large refactor of the mysql cookbook and that recipe is no longer necessary. You can see the updated usage in the cookbook's README.

like image 83
sethvargo Avatar answered Sep 21 '22 10:09

sethvargo


cookbooks/mysql/recipes/default.rb not available for mysql cookbook, you need update the run list "recipe[mysql::server]" or "recipe[mysql::client]"

like image 44
Ganesan Murugesan Avatar answered Sep 22 '22 10:09

Ganesan Murugesan