我正在使用流浪漢和廚師。我有一個應該加載和配置nginx的配方。廚師未加載nginx
在我vagrantfile我:
chef.cookbooks_path = [ 'chef/cookbooks', 'chef/cookbooks-sources' ]
在我chefFile:
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)
當我運行了流浪者或提供我得到如下結果:
[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
如何解決我的錯誤?
Cheffile由圖書管理員廚師使用,它是berkshelf的替代工具。 –