在Ubuntu上找不到食谱?

在Ubuntu上找不到食谱?,ubuntu,chef-infra,ubuntu-14.04,yum,chef-solo,Ubuntu,Chef Infra,Ubuntu 14.04,Yum,Chef Solo,我正在使用little chef github.com/tobami/littlechef在使用virtualbox和vagrant的Ubuntu14.04虚拟机上安装graphite 描述ubuntu服务器的节点如下所示 { "chef_environment": "_default", "name": "local_monitoring", "platform": "debian", "run_list": [ "recipe[graphite

我正在使用little chef github.com/tobami/littlechef在使用virtualbox和vagrant的Ubuntu14.04虚拟机上安装graphite

描述ubuntu服务器的节点如下所示

{
    "chef_environment": "_default",
    "name": "local_monitoring",
    "platform": "debian",
    "run_list": [
        "recipe[graphite]"
    ]
}
当我尝试运行以下命令时

fix node:local_monitoring
。。。我收到以下错误消息

    == Configuring local_monitoring ==
Synchronizing nodes, environments, roles, cookbooks and data bags...

Cooking...
[2014-12-31T01:40:58+00:00] INFO: Forking chef instance to converge...
[2014-12-31T01:40:58+00:00] INFO: *** Chef 11.12.8 ***
[2014-12-31T01:40:58+00:00] INFO: Chef-client pid: 19967
[2014-12-31T01:41:04+00:00] INFO: Setting the run_list to ["recipe[graphite]"] from CLI options
[2014-12-31T01:41:04+00:00] INFO: Run List is [recipe[graphite]]
[2014-12-31T01:41:04+00:00] INFO: Run List expands to [graphite]
[2014-12-31T01:41:04+00:00] INFO: Starting Chef Run for local-monitoring
[2014-12-31T01:41:04+00:00] INFO: Running start handlers
[2014-12-31T01:41:04+00:00] INFO: Start handlers complete.
[2014-12-31T01:41:04+00:00] ERROR: Running exception handlers
[2014-12-31T01:41:04+00:00] ERROR: Exception handlers complete
[2014-12-31T01:41:04+00:00] FATAL: Stacktrace dumped to /tmp/chef-solo/cache/chef-stacktrace.out
[2014-12-31T01:41:04+00:00] ERROR: Cookbook yum not found. If you're loading yum from another cookbook, make sure you configure the dependency in your metadata
[2014-12-31T01:41:04+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

FAILED: chef-solo could not finish configuring the node

Disconnecting from vagrant@127.0.0.1:2001... done.
我在我的coobooks目录中安装了graphite cookbook,可在github.com/hw-cookbooks/graphite找到

我在lists.opscode.com/sympa/arc/chef/2013-02/msg00409.html中了解到类似的问题,因此我从这里下载了《百胜食谱》并将其添加到我的运行列表中,但当我运行
修复节点:local_monitoring
时,我得到以下输出

== Configuring local_monitoring ==
Synchronizing nodes, environments, roles, cookbooks and data bags...

Cooking...
[2014-12-31T01:47:18+00:00] INFO: Forking chef instance to converge...
[2014-12-31T01:47:18+00:00] INFO: *** Chef 11.12.8 ***
[2014-12-31T01:47:18+00:00] INFO: Chef-client pid: 20308
[2014-12-31T01:47:24+00:00] INFO: Setting the run_list to ["recipe[yum]", "recipe[graphite]"] from CLI options
[2014-12-31T01:47:24+00:00] INFO: Run List is [recipe[yum], recipe[graphite]]
[2014-12-31T01:47:24+00:00] INFO: Run List expands to [yum, graphite]
[2014-12-31T01:47:24+00:00] INFO: Starting Chef Run for local-monitoring
[2014-12-31T01:47:24+00:00] INFO: Running start handlers
[2014-12-31T01:47:24+00:00] INFO: Start handlers complete.
[2014-12-31T01:47:24+00:00] ERROR: Running exception handlers
[2014-12-31T01:47:24+00:00] ERROR: Exception handlers complete
[2014-12-31T01:47:24+00:00] FATAL: Stacktrace dumped to /tmp/chef-solo/cache/chef-stacktrace.out
[2014-12-31T01:47:24+00:00] ERROR: Cookbook yum not found. If you're loading yum from another cookbook, make sure you configure the dependency in your metadata
[2014-12-31T01:47:24+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

FAILED: chef-solo could not finish configuring the node

Disconnecting from vagrant@127.0.0.1:2001... done.

我真的不知道该怎么办,也不知道是什么导致了这个问题。任何帮助都将不胜感激。如果我需要澄清一些事情,请告诉我。多谢各位

。因为Chef cookbook依赖项必须是纯静态的,它们不能是每个平台的依赖项,所以即使在实际不使用它的平台上,您也需要它。这就是为什么像Berkself这样的工具在管理下载和依赖项方面很受欢迎。

该食谱需要更新以支持ubuntu,即使用
package
进行安装。这将使其使用
apt get install
而不是
yum
上述评论不正确,与此问题无关。感谢您的评论!为什么即使在我将百胜烹饪书包括在我的运行列表中之后,Chef仍然无法找到它?您是否真的下载了百胜烹饪书并将其解包到您的cookbooks文件夹(以及所有其他依赖项)?我从这里和这里克隆了存储库。我把它放在我的食谱目录里。