【发布时间】:2014-04-18 22:12:56
【问题描述】:
我正在使用 Chef Solo 和 Berkshelf 在 CentOS 6.5 上构建一个 Vagrant VM。出于某种原因,当我尝试安装“htop”食谱时,出现此错误:
================================================================================
Recipe Compile Error
================================================================================
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe repoforge for cookbook yum
有人见过这种错误吗?我的 Vagrantfile 部分如下所示:
config.vm.provision :chef_solo do |chef|
chef.add_recipe 'yum'
chef.add_recipe 'yum-epel'
chef.add_recipe 'git'
chef.add_recipe 'htop'
end
如果我做同样的事情但没有 'htop' 配方,它工作正常。我什至尝试添加:
chef.add_recipe 'yum-repoforge'
我仍然遇到同样的错误。
想法?
【问题讨论】:
-
chef.add_recipe 'yum-repoforge无能为力,因为 a) 它会是yum::repoforge,而且问题是repoforge食谱不包含在yum食谱中。
标签: centos chef-infra vagrant yum berkshelf