2017-03-08 152 views
0

我寫過一些食譜。 現在我想在多個平臺上使用廚房進行測試。 我想在安裝Visual Studio之前重新啓動我的virtualbox istance。 但是當機器重新啓動時,我的會話完成了,我無法安裝Visual Studio。 我使用廚師12.5.1廚房測試和重啓流浪箱

它可能安裝PowerShell 4,重新啓動虛擬機,並再次重新啓動我的運行廚師和安裝visulstudio? 我什麼狀態,如果我從客戶做做飯一切正常,但是從廚房工作不

感謝您

回答

0

它不會與廚師的工作,老了,你需要使用12.11或更高版本,但Test Kitchen總體上支持這一點。相關配置程序配置示例:

provisioner: 
    name: chef_zero # or chef_solo 
    require_chef_omnibus: 12.11 # need the RFC 062 exit codes 
    retry_on_exit_code: 
    - 35 # 35 is the exit code signaling that the node is rebooting 
    max_retries: 1 
    client_rb: 
    exit_status: :enabled # Opt-in to the standardized exit codes 
    client_fork: false # Forked instances don't return the real exit code 
+0

謝謝。 我嘗試使用廚師12.11.8,這是錯誤: 例外 類:Kitchen :: ActionFailed 未能完成收斂行動。 現在有什麼問題? – AleZucchelli