From 2a8ee704406bc678b86efe49e5c87e298d55eac5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 20 Jul 2013 12:35:51 -0700 Subject: [PATCH] website: sleep in getting started --- .../source/intro/getting-started/provision.html.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/source/intro/getting-started/provision.html.markdown b/website/source/intro/getting-started/provision.html.markdown index 703e466ee..ddb012d53 100644 --- a/website/source/intro/getting-started/provision.html.markdown +++ b/website/source/intro/getting-started/provision.html.markdown @@ -42,6 +42,7 @@ block below. "provisioners": [{ "type": "shell", "inline": [ + "sleep 30", "sudo apt-get update", "sudo apt-get install -y redis-server" ] @@ -49,6 +50,13 @@ block below. } +
+Note: The sleep 30 in the example above is +very important. Because Packer is able to detect and SSH into the instance +as soon as SSH is available, Ubuntu actually doesn't get proper amounts +of time to initialize. The sleep makes sure that the OS properly initializes. +
+ Hopefully it is obvious, but the `builders` section shouldn't actually contain "...", it should be the contents setup in the previous page of the getting started guide.