Berkshelf食谱未复制到Vagrant目录 [英] Berkshelf cookbooks are not being copied to the Vagrant directory
问题描述
我正在尝试使用Chef-solo,Berkshelf和vagrant-berkshelf插件配置Vagrant机器。但是,配置失败并显示以下错误:
I am trying to provision a Vagrant machine using Chef-solo, Berkshelf, and the vagrant-berkshelf plugin. However, the provisioning fails with this error:
Berkshelf :: CookbookNotFound:Cookbook< cookbook name>在任何默认位置都找不到
berks install
成功将所有内容安装到〜/ .berkshelf / cookbooks /
,但是食谱永远不会复制到〜。/ berkshelf / default / vagrant / berkshelf-20131017-8441-pqghfq -default
,这是Berkshelf报告其正在更新的位置,位于跟踪之前:
berks install
successfully installs everything to ~/.berkshelf/cookbooks/
, but the cookbooks are never copied over to ~./berkshelf/default/vagrant/berkshelf-20131017-8441-pqghfq-default
which is where Berkshelf reports it is updating, right before the trace:
[Berkshelf]更新Vagrant的berkshelf :'/ Users /< me> /。berkshelf / default / vagrant / berkshelf-20131017-8441-pqghfq-default'
所以,我想我的问题是:
- 谁负责将食谱复制到特定的Vagrant文件夹(Berkshelf, ,vagrant-berkshelf插件还是Vagrant)?今天晚上,我浏览了每个回购协议的来源,但无法确定应该在哪里发生。
- 我是否可以提供更多信息来帮助回答问题#1? :)
环境详细信息:
Mac OSX 10.8
ruby 1.9.3
Mac OSX 10.8 ruby 1.9.3
vagrant -v:1.3.5
berks -v:Berkshelf(2.0.10)
$:流浪者插件列表
buff-config(0.2.0)
mini_portile(0.5.1)
nugrant(1.1.0)
vagrant-berkshelf(1.3.4)
vagrant-cachier(0.1.0)
无所不在的综合(1.1.1)
vagrant-rackspace(0.1.3)
推荐答案
谁负责将食谱复制到特定的Vagrant
文件夹(Berkshelf,vagrant-berkshelf插件或Vagrant)?
Who is responsibile for copying the cookbooks to the specific Vagrant folder (Berkshelf, the vagrant-berkshelf plugin, or Vagrant)?
A
The Vagrant chef-solo提供者具有复制食谱的能力(+角色/ data bag / etc)从主机到来宾。它是通过在主机上创建一个目录,然后将该目录安装在VM中来实现的。
The Vagrant chef-solo provisioner has the ability to copy cookbooks (+ roles/data bags/etc) from the host machine to the guest. It does this by creating a directory on the host and then mounting that directory within the VM.
vagrant-berkshelf插件首先在主机上创建目录,然后使用香草Berkshelf功能将所有相关食谱导出到该目录。
The vagrant-berkshelf plugin first creates a directory on the host and then uses vanilla Berkshelf functionality to export all of the relevant cookbooks to this directory.
最后vagrant-berkshelf插件告诉Chef-Solo设置者使用其具有的目录已创建作为菜谱的来源,应复制到来宾中。
Lastly the vagrant-berkshelf plugin tells the Chef-Solo provisioner to use the directory it has created as the source for the cookbooks it should copy across to the guest.
这篇关于Berkshelf食谱未复制到Vagrant目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!