2017-04-25 98 views
0

我有下面一段代碼來下載安裝程序廚師:: remote_file無法同時做一個廚房下載會聚

remote_file '/tmp/apache-tomcat-8.0.23.tar.gz' do 
    source 'http://mirror.sdunix.com/apache/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.tar.gz' 
end 

其使用執行時kitchen converge

 ===================================================================== =========== 
      Error executing action `create` on resource 'remote_file[/tmp/apache- 
tomcat-8.0.23.tar.gz]' 
      ===================================================================== 
=========== 

      Errno::ENETUNREACH 
      ------------------ 
      Failed to open TCP connection to mirror.sdunix.com:80 (Network is unr 
eachable - connect(2) for "mirror.sdunix.com" port 80) 

任何想法,爲什麼我我得到這個網絡問題?

+0

您在測試廚房下面使用了哪個VM提供程序? –

+0

我使用Vagrant VIrtualbox – aaj

+0

您可以從虛擬機訪問互聯網嗎?您的網絡如何配置? –

回答

0

我猜你用作遠程文件源的url不可公開訪問(我無法解決它),所以我敢打賭,你在kitchen-vagrant虛擬機中缺少正確的網絡配置。你使用正確的dns服務器嗎?如果您不需要/擁有它們,請嘗試更新您的/etc/hosts文件,使其包含地址碼http://mirror.sdunix.com/

相關問題