From a537888fb0e7520feb6ea424f23a635d1e47ed0b Mon Sep 17 00:00:00 2001 From: h4ckNinja Date: Sun, 28 Apr 2019 23:20:13 -0700 Subject: [PATCH] Move the communicator pause_before_connecting block to a code block and fix the JSON --- website/source/docs/templates/communicator.html.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/source/docs/templates/communicator.html.md b/website/source/docs/templates/communicator.html.md index 2bd611b04..4114233fa 100644 --- a/website/source/docs/templates/communicator.html.md +++ b/website/source/docs/templates/communicator.html.md @@ -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 `pause_before_connecting`. By default, there is no pause. For example: +``` { - "communicator": "ssh" + "communicator": "ssh", "ssh_username": "myuser", "pause_before_connecting": "10m" } +``` 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