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.

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

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分