【发布时间】:2016-08-22 23:19:34
【问题描述】:
我正在使用 vagrant 和 chef 来配置 VM。 VM 的 basebox 是一个自定义的 virtualbox basebox,它是我从具有自定义的自定义 Fedora 17 操作系统的 VM 创建的。它可能不相关,但自定义 basebox 是从我们本地的 Artifactory 存储库下载的,而不是从 HashiCorp 网站下载的。
这是 Vagrantfile 的主要部分:
Vagrant.configure(2) do |config|
config.vm.box = "GemBuildSystem-4.10"
...
config.vm.provision :chef_solo do |chef|
#Fix for: http://stackoverflow.com/questions/37336477/chefzero-returning-404
chef.channel = "stable"
#chef.version = "12.10.24"
...
end
end
当我运行命令“vagrant up --provision”时,我收到以下错误:
==> default: el 4 i386
==> default: Getting information for chef stable for el...
==> default: downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386
==> default: to file /tmp/install.sh.6206/metadata.txt
==> default: trying wget...
==> default: ERROR 404
==> default: Omnitruck artifact does not exist for version on platform el
==> default: Either this means:
==> default: - We do not support el
==> default: - We do not have an artifact for
==> default: This is often the latter case due to running a prerelease or RC version of chef
==> default: or a gem version which was only pushed to rubygems and not omnitruck.
==> default: You may be able to set your knife[:bootstrap_version] to the most recent stable
==> default: release of Chef to fix this problem (or the most recent stable major version number).
==> default: In order to test the version parameter, adventurous users may take the Metadata URL
==> default: below and modify the '&v=<number>' parameter until you successfully get a URL that
==> default: does not 404 (e.g. via curl or wget). You should be able to use '&v=11' or '&v=12'
==> default: succesfully.
==> default: If you cannot fix this problem by setting the bootstrap_version, it probably means
==> default: that el is not supported.
==> default: Metadata URL: https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=4&m=i386
我观察到的第一个问题是服务器omnitruck-direct.chef.io 不存在。它应该是omnitruckchef.io。这个服务器是怎么确定的?我能做些什么来解决这个问题? TIA。
【问题讨论】:
标签: vagrant chef-infra