0

我像这样编辑了 Berksfile,

site :opscode
cookbook 'php-fpm'
cookbook 'yum-epel'
cookbook 'mysql'

并运行berks install,然后foo.json像这样编辑。

{"run_list": [
    "recipe[yum-epel]",
    "recipe[php-fpm]",
    "recipe[mysql]"
]}

RecipeNotFound当我跑步时,我明白了knife solo cook foo

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

由于错误表明没有default.rbin cookbooks/mysql/recipes/

我认为 Berkshelf 会default.rb自动创建 from opscode 站点,但这并没有发生。

我应该怎么做才能使用 opscode mysql 配方?

4

1 回答 1

1

我必须选择"recipe[mysql::server]""recipe[mysql::client]"

于 2014-04-10T13:07:46.797 回答