Merge pull request #7582 from h4ckninja/patch-1

Move the communicator pause_before_connecting
This commit is contained in:
Adrien Delorme 2019-04-29 10:25:44 +02:00 committed by GitHub
commit ee4f16d3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -207,11 +207,13 @@ you need Packer to wait before attempting to connect to your guest.
If you end up in this situation, you can use the template option If you end up in this situation, you can use the template option
`pause_before_connecting`. By default, there is no pause. For example: `pause_before_connecting`. By default, there is no pause. For example:
```
{ {
"communicator": "ssh" "communicator": "ssh",
"ssh_username": "myuser", "ssh_username": "myuser",
"pause_before_connecting": "10m" "pause_before_connecting": "10m"
} }
```
In this example, Packer will check whether it can connect, as normal. But once In this example, Packer will check whether it can connect, as normal. But once
a connection attempt is successful, it will disconnect and then wait 10 minutes a connection attempt is successful, it will disconnect and then wait 10 minutes