我像这样编辑了 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.rb
in cookbooks/mysql/recipes/
。
我认为 Berkshelf 会default.rb
自动创建 from opscode 站点,但这并没有发生。
我应该怎么做才能使用 opscode mysql 配方?