2016-08-22 86 views
1

我正在使用流浪者和廚師配置虛擬機。 VM的basebox是一個自定義的virtualbox basebox,我使用定製的定製Fedora 17 OS從VM創建。它可能不相關,但是自定義的basebox從我們的本地Artifactory倉庫下載,而不是從HashiCorp站點下載。流浪廚師配置失敗:獲取el的主廚信息穩定

這裏是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 

當我運行命令「無業遊民了--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。

回答

1

看起來,您正在運行EL 4,哪位廚師不支持因此不可用。

==> 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 

檢查EL 6,它存在

https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=6&m=i386

EL 5,其中還存在

https://omnitruck-direct.chef.io/stable/chef/metadata?v=&p=el&pv=5&m=i386

廚師客戶

https://downloads.chef.io/chef-client/redhat/