Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
506a6577
Commit
506a6577
authored
Jun 14, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: doc windows-restart
parent
840ddb4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
website/source/docs/provisioners/windows-restart.html.md
website/source/docs/provisioners/windows-restart.html.md
+43
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/provisioners/windows-restart.html.md
0 → 100644
View file @
506a6577
---
layout
:
"
docs"
page_title
:
"
Windows
Restart
Provisioner"
description
:
|-
The Windows restart provisioner restarts a Windows machine and waits for it to come back up.
---
# Windows Restart Provisioner
Type:
`windows-restart`
The Windows restart provisioner initiates a reboot on a Windows machine
and waits for the machine to come back online.
The Windows provisioning process often requires multiple reboots, and this
provisioner helps to ease that process.
## Basic Example
The example below is fully functional.
```
javascript
{
"
type
"
:
"
windows-restart
"
}
```
## Configuration Reference
The reference of available configuration options is listed below.
Optional parameters:
*
`restart_command`
(string) - The command to execute to initiate the
restart. By default this is
`shutdown /r /c "packer restart" /t 5 && net stop winrm`
.
A key action of this is to stop WinRM so that Packer can 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_timeout`
(string) - The timeout to wait for the restart.
By default this is 5 minutes. Example value: "5m"
website/source/layouts/docs.erb
View file @
506a6577
...
...
@@ -56,6 +56,7 @@
<li><a
href=
"/docs/provisioners/puppet-masterless.html"
>
Puppet Masterless
</a></li>
<li><a
href=
"/docs/provisioners/puppet-server.html"
>
Puppet Server
</a></li>
<li><a
href=
"/docs/provisioners/salt-masterless.html"
>
Salt
</a></li>
<li><a
href=
"/docs/provisioners/windows-restart.html"
>
Windows Restart
</a></li>
<li><a
href=
"/docs/provisioners/custom.html"
>
Custom
</a></li>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment