在 Vagrant 中收到这个奇怪的错误,想知道是否有人可以帮忙
我正在尝试设置 Vagrant。我正在遵循网站上的指南,目前在指南的配置部分遇到问题(http://vagrantup.com/docs/getting-started/provisioning.html)我已经完全按照它的方式进行操作网站,但我收到此错误,我在 Mac OSX 上,如果它有任何重要的话,
evan@superduper ~/vagrant_guide $ vagrant up
There was a problem with the configuration of Vagrant. The error message(s)
are printed below:
chef:
* Run list must not be empty.
这也是我的 Vagrant 文件代码,如果这也有帮助的话:
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
# Enable the chef solo provisioner
config.vm.provisioner = :chef_solo
# Grab the cookbooks from the Vagrant files
config.chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz"
end
有人知道这是什么以及我如何修复它吗?
谢谢杰
I am trying to set up Vagrant. I am following the guide on the web site and currently have trouble with the Provisioning part of the guide (http://vagrantup.com/docs/getting-started/provisioning.html) I have followed this thing to exactly as it is on the site but I am receiving this error, I am on Mac OSX if it's of any important
evan@superduper ~/vagrant_guide $ vagrant up
There was a problem with the configuration of Vagrant. The error message(s)
are printed below:
chef:
* Run list must not be empty.
Here is my code for the Vagrant file as well if this also helps:
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
# Enable the chef solo provisioner
config.vm.provisioner = :chef_solo
# Grab the cookbooks from the Vagrant files
config.chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz"
end
Does anyone what this is from and how I can fix it?
Thanks
J
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将此行添加到您的
Vagrantfile
中:You need to add this line to your
Vagrantfile
:在 vagrant 0.6.0 及更高版本中,您必须在 Vagrantfile 中添加至少一个配方,因为默认配方列表为空。旧的 Vagfile 必须更新才能使用 0.6.0+
这里是更改。
我建议您在更新 vagrant 之前阅读变更日志。该项目是测试版,因此 API 正在快速变化。
作者承诺该 API 将在 1.0 版保持稳定:-)
In vagrant 0.6.0 and above you must add at least one recipe in your Vagrantfile, because the default recipe list is empty. Old Vagfiles have to be updated, to work with 0.6.0+
Here is the change.
I recommend you to read the changelog before updating vagrant. The project is beta, so the API is changing rapidly.
The author promises that the API will be stable at version 1.0 :-)