状态NoMethodError
时无法解决此错误Recipe Compile Error in /var/chef/cache/cookbooks/jbosseap/recipes/default.rb
NoMethodError
-------------
No resource or method named jboss for `Chef::Recipe "default_deploy_list"'
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/jbosseap/recipes/default_deploy_list.rb:1:in from_file
/var/chef/cache/cookbooks/jbosseap/recipes/default.rb:15:in from_file
> Relevant File Content:
>/var/chef/cache/cookbooks/jbosseap/recipes/default_deploy_list.rb:
> 1 jboss 'testweb' do
> 2: source "https://s3-us-west-2.amazonaws.com/chef.repos/testweb.zip"
>3: action :deploy
>4: end
我该怎么办?
答案 0 :(得分:0)
该食谱中的jboss
是什么?您可能错过了metadata.rb
文件中的依赖项。 Chef对您声明的jboss['testweb']
资源一无所知。