github.com/aspring/packer@v0.8.1-0.20150629211158-9db281ac0f89/website/source/docs/provisioners/windows-restart.html.md (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Windows Restart Provisioner"
     4  description: |-
     5    The Windows restart provisioner restarts a Windows machine and waits for it to come back up.
     6  ---
     7  
     8  # Windows Restart Provisioner
     9  
    10  Type: `windows-restart`
    11  
    12  The Windows restart provisioner initiates a reboot on a Windows machine
    13  and waits for the machine to come back online.
    14  
    15  The Windows provisioning process often requires multiple reboots, and this
    16  provisioner helps to ease that process.
    17  
    18  ## Basic Example
    19  
    20  The example below is fully functional.
    21  
    22  ```javascript
    23  {
    24    "type": "windows-restart"
    25  }
    26  ```
    27  
    28  ## Configuration Reference
    29  
    30  The reference of available configuration options is listed below.
    31  
    32  Optional parameters:
    33  
    34  * `restart_command` (string) - The command to execute to initiate the
    35    restart. By default this is `shutdown /r /c "packer restart" /t 5 && net stop winrm`.
    36    A key action of this is to stop WinRM so that Packer can detect it
    37    is rebooting.
    38  
    39  * `restart_check_command` (string) - A command to execute to check if the
    40    restart succeeded. This will be done in a loop.
    41  
    42  * `restart_timeout` (string) - The timeout to wait for the restart.
    43    By default this is 5 minutes. Example value: "5m"