我在调试 chef-solo 时出错。
....in 'from_file
当我通过 chef-recipes 安装 nginx 时,我可以看到同样的问题。我已经下载安装了epel-release-5-4.noarch.rpm
,我也创建了/etc/yum.repos.d/epel.repo
。
我该怎么办?
* package[vim] action install
* No version specified, and no candidate version available for vim
================================================================================
Error executing action `install` on resource 'package[vim]'
================================================================================
Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for vim
Resource Declaration:
---------------------
# In /root/Development/chef-repo/site-cookbooks/vim/recipes/default.rb
9: package "vim" do
10: action :install
11: end
12:
Compiled Resource:
------------------
# Declared in /root/Development/chef-repo/site-cookbooks/vim/recipes/default.rb:9:in `from_file'
package("vim") do
action [:install]
retries 0
retry_delay 2
package_name "vim"
cookbook_name :vim
recipe_name "default"
end