From b52ba4557ecf67450ed75f3480dd3645d714ecda Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 7 Nov 2017 16:00:40 -0800 Subject: [PATCH] add some example json to windows restart_check_command --- website/source/docs/provisioners/windows-restart.html.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/website/source/docs/provisioners/windows-restart.html.md b/website/source/docs/provisioners/windows-restart.html.md index 450977b55..e9e348755 100644 --- a/website/source/docs/provisioners/windows-restart.html.md +++ b/website/source/docs/provisioners/windows-restart.html.md @@ -42,7 +42,14 @@ Optional parameters: detect it is rebooting. - `restart_check_command` (string) - A command to execute to check if the - restart succeeded. This will be done in a loop. + restart succeeded. This will be done in a loop. Example usage: + +``` json + { + "type": "windows-restart", + "restart_check_command": "powershell -command \"& {Write-Output 'restarted.'}\"" + }, +``` - `restart_timeout` (string) - The timeout to wait for the restart. By default this is 5 minutes. Example value: `5m`. If you are installing