doulou0882 2015-01-15 18:50
浏览 33
已采纳

厨师PHP食谱RecipeNotFound:找不到食谱mysql的食谱客户端

I'm using chef for the first time, trying to get my head around recipes and cookbooks.

I receiving the error 'mysql::client' fails after configuring the standard php cookbook which I'm currently doing in my roles file:

run_list(
  "recipe[phpwebtatics]",
  "recipe[php]",
  "recipe[composer]"
)

override_attributes 'php' => {
'install_method' => "source",
'version' => "5.5",
'packages' => ["php55w", "php55w-devel", "php55w-pear", "php55w-cli", "php55w-pdo", "php55w-fpm", "php55w-intl", "php55w-mbstring", "php55w-mcrypt", "php55w-pecl-memcache", "php55w-pecl-xdebug", "php55w-process", "php55w-xml"]
}

(I've written my own webtatics cookbook which basically fetches the webtatics rpm):

# Go get web tatic
remote_file "#{Chef::Config[:file_cache_path]}/webtatic_repo_latest.rpm" do
    source "http://mirror.webtatic.com/yum/el6/latest.rpm"
    action :create
end

rpm_package "jmxtrans" do
    source "#{Chef::Config[:file_cache_path]}/webtatic_repo_latest.rpm"
    action :install
end 

I've tracked the error to the line:

include_recipe 'mysql::client' if configure_options =~ /mysql/

in the php cookbook, but I have no idea how to disable it from running and I can't simply replace the line as it comes from Berkshelf and get's overwritten.

Apparently mysql:client is no longer a valid way of installing mysql so I'm not sure why it's there. Is this a bug or can I override this?

Thanks

  • 写回答

1条回答 默认 最新

  • doujuxin7392 2015-01-15 19:04
    关注

    As of version 6.0.0 the mysql cookbook is now a library-only cookbook. This means it no longer provides recipes. You'll want to create a wrapper cookbook that uses the mysql_client resource and use that recipe instead.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站