1
A
回答
1
1
如上所述檢查鏈接windows cookbook & windows reboot。我的所有信息都是從以前的鏈接中收集的。
附上WindowsRebootHandler在配方
include_recipe 'windows::reboot_handler'
創建重新引導塊
windows_reboot 30 do
timeout 30
reason 'Restarting computer in 30 seconds!'
action :nothing
end
- 超時:在重新啓動之前超時延遲(秒)。默認爲60秒
- 原因:重新啓動的原因。默認爲「Opscode公司的廚師開始重啓」
通知重啓塊觸發重啓
notifies :request, 'windows_reboot[30]', :delayed
- :延遲 - 通知排隊,並在廚師的客戶端運行的最末端執行
- :立即 - 當我使用reboot資源通知立即跑
+0
當我使用重新啓動資源,虛擬機實際上沒有重新啓動,並且出現以下錯誤 錯誤:WinRM: :WinRMHTTPTransportError:從服務器返回的錯誤HTTP響應(500) –
+0
似乎WinRM沒有在目標服務器上正確設置,但很難說不知道您使用的Chef命令。我之前已經解釋過Windows Chef bootstrap [這裏](https://stackoverflow.com/questions/23813486/unable-to-bootstrap-chef-on-windows/23919580#23919580)。 – Sanderp
相關問題
- 1. 測試廚房:廚師在重新啓動後不重新啓動
- 2. 重新啓動(Windows)後,廚師食譜可以繼續嗎?
- 3. 廚師:重新啓動Windows節點上的服務
- 4. 廚師 - 根據需要啓動或重新啓動服務
- 5. 如何啓動測試廚師服務器來測試使用廚師的廚師自動化
- 6. 廚師 - 由於自動加密機制而重新啓動
- 7. 如何重新命名廚師食譜?
- 8. 使用Powershell重新啓動VM
- 9. 需要在Windows上禁用廚師客戶端廚師
- 10. 廚師LWRPs - 如何使用
- 11. 忽略廚師中的所有重新啓動請求
- 12. 廚師 - 在不同節點上觸發重新啓動服務
- 13. 如何使用Berkshelf與廚師獨奏?
- 14. 使用廚師
- 15. 使用廚師
- 16. 使用廚師
- 17. 如何讓廚師重新啓動一個服務並傳入其他參數?
- 18. 如何使用廚師食譜迭代廚師角色屬性
- 19. 廚師的服務重啓機制
- 20. 重啓RHEL服務器後,廚師服務器無法啓動
- 21. 設置流浪VM的廚師代理
- 22. 使用廚師的Windows節點引導
- 23. 廚師Windows中使用屬性
- 24. 如何在Windows上使用廚師安裝Xamarin
- 25. 廚師屬性值重用
- 26. 試圖通過廚師啓動statsD
- 27. 廚師服務器將無法啓動
- 28. 廚師食譜:服務未啓動
- 29. 我無法在cygwin上啓動廚師
- 30. 與廚師一起啓動ec2實例
,虛擬機實際上是沒有得到重新啓動,我摹出現以下錯誤錯誤:WinRM :: WinRMHTTPTransportError:從服務器返回的錯誤HTTP響應(500) –