【问题标题】:How to use ark on a hosted chef node如何在托管 Chef 节点上使用 ark
【发布时间】:2014-01-03 06:56:17
【问题描述】:

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

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

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

谁能告诉我问题出在哪里?

【问题讨论】:

  • 您找到解决此问题的方法了吗?请不要忘记将答案标记为正确! :)

标签: chef-infra cookbook


【解决方案1】:

我没有用过这本食谱,但看起来 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    相关资源
    最近更新 更多