【发布时间】:2013-07-04 03:04:04
【问题描述】:
我正在使用流浪者和厨师。我有一个应该加载和配置 nginx 的配方。
在我的流浪文件中我有:
chef.cookbooks_path = [ 'chef/cookbooks', 'chef/cookbooks-sources' ]
在我的厨师文件中:
cookbook 'nginx',
git: 'https://github.com/opscode-cookbooks/nginx.git'
在我的食谱 metadata.rb 中(在食谱资源中):
depends "nginx"
在我的食谱中,我有:
include_recipe 'nginx'
Cheffile.lock 看起来像:
DEPENDENCIES
apt (>= 0)
cassandra (>= 0)
curl (>= 0)
elasticsearch (>= 0)
java (>= 0)
java_extras (>= 0)
phantomjs (>= 0)
postgresql (>= 0)
python (>= 0)
redis (>= 0)
rvm (>= 0)
sbt-extras (>= 0)
windows (= 1.8.6)
当我运行 vagrant up 或 provision 时,我得到以下信息:
[2013-07-02T20:21:40+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook nginx not found. If you're loading nginx from another cookbook, make sure you configure the dependency in your metadata
如何解决我的错误?
【问题讨论】:
标签: nginx chef-infra vagrant