Merge pull request #3962 from evanstucker-hates-2fa/patch-1

Update shell.html.md
This commit is contained in:
Rickard von Essen 2016-10-04 20:58:21 +02:00 committed by GitHub
commit ed876f91df
1 changed files with 7 additions and 5 deletions

View File

@ -159,12 +159,14 @@ scripts. The amount of time the provisioner will wait is configured using
Sometimes, when executing a command like `reboot`, the shell script will return
and Packer will start executing the next one before SSH actually quits and the
machine restarts. For this, put a long `sleep` after the reboot so that SSH will
eventually be killed automatically:
machine restarts. For this, put use "pause_before" to make Packer wait before executing the next script:
``` {.text}
reboot
sleep 60
``` {.javascript}
{
"type": "shell",
"script": "script.sh",
"pause_before": "10s"
}
```
Some OS configurations don't properly kill all network connections on reboot,