website: update for pause_before

This commit is contained in:
Mitchell Hashimoto 2013-12-20 21:49:10 -08:00
parent 196a0642c4
commit a2671dc383
1 changed files with 23 additions and 0 deletions

View File

@ -112,3 +112,26 @@ JSON object where the key is the name of a [builder definition](/docs/templates/
The value of this is in turn another JSON object. This JSON object simply
contains the provisioner configuration as normal. This configuration is merged
into the default provisioner configuration.
## Pausing Before Running
With certain provisioners it is sometimes desirable to pause for some period
of time before running it. Specifically, in cases where a provisioner reboots
the machine, you may want to wait for some period of time before starting
the next provisioner.
Every provisioner definition in a Packer template can take a special
configuration `pause_before` that is the amount of time to pause before
running that provisioner. By default, there is no pause. An example
is shown below:
<pre class="prettyprint">
{
"type": "shell",
"script": "script.sh",
"pause_before": "10s"
}
</pre>
For the above provisioner, Packer will wait 10 seconds before uploading
and executing the shell script.