From 70251a2c2ad296df98701e8e96ebf086a1300168 Mon Sep 17 00:00:00 2001 From: Adam Hawkins Date: Wed, 21 Aug 2013 01:34:48 +0200 Subject: [PATCH] Add sleep tip about ssh --- website/source/docs/provisioners/shell.html.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/source/docs/provisioners/shell.html.markdown b/website/source/docs/provisioners/shell.html.markdown index 0d1eaec7a..3f41933b5 100644 --- a/website/source/docs/provisioners/shell.html.markdown +++ b/website/source/docs/provisioners/shell.html.markdown @@ -147,3 +147,13 @@ while the provisioner is using /bin/sh. * Adding a `-x` flag to the shebang at the top of the script (`#!/bin/sh -x`) will echo the script statements as it is executing. + +*My builds don't always work the same* + +* Some distrobutions start the SSH daemon before other core services. This can create race conditions. +Your first provisoner can tell the machine to wait until it completely boots. + + { + "type": "script" + "inline": [ "sleep 10" ] + }