0

我在托管厨师节点的运行列表中添加了方舟食谱。现在我想在另一本食谱中使用方舟,就在方舟食谱之后。

我在方舟食谱之后的食谱中加入了方舟食谱。代码如下所示:

include_recipe "ark"

下载 olio

subversion "checkout-olio" do
  repository "https://svn.apache.org/repos/asf/incubator/olio/"
  revision "HEAD"
  destination "/usr/local"
  action :checkout
end

安装faban

ark "install-faban" do
  url "http://java.net/projects/faban/downloads/download/faban-kit/faban-kit-022311.tar.gz"
  version "1.0"
  path "/usr/local"
  append_env_path true
end

当我上传此文件并运行客户端时,会发生以下错误:

NoMethodError: undefined method `url' for Chef::Resource::Ark

有人可以告诉我问题出在哪里吗?

4

1 回答 1

0

我没有用过这本食谱,但看起来 ark 的属性是 release_url 而不是 url:

 release_url: url for tarball, .tar.gz, .bin (oracle-specific), .war, and .zip currently supported. Also supports special syntax :name:version:apache_mirror: that will auto-magically construct download url from the apache mirrors site
于 2012-04-13T19:41:00.630 回答