From 7253d6547b871ae8503d694b4f245456028be1b0 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 23 Mar 2018 15:46:39 -0700 Subject: [PATCH] minor LXD documentation tweaks --- builder/lxd/step_lxd_launch.go | 4 +++- website/source/docs/builders/lxd.html.md | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/builder/lxd/step_lxd_launch.go b/builder/lxd/step_lxd_launch.go index 09464cd2d..55b7e4954 100644 --- a/builder/lxd/step_lxd_launch.go +++ b/builder/lxd/step_lxd_launch.go @@ -3,6 +3,7 @@ package lxd import ( "context" "fmt" + "log" "strconv" "time" @@ -46,8 +47,9 @@ func (s *stepLxdLaunch) Run(_ context.Context, state multistep.StateBag) multist // TODO: Should we check `lxc info ` for "Running"? // We have to do this so /tmp doesn't get cleared and lose our provisioner scripts. - time.Sleep(time.Duration(sleep_seconds) * time.Second) + time.Sleep(time.Duration(sleep_seconds) * time.Second) + log.Printf("Sleeping for %d seconds...", sleep_seconds) return multistep.ActionContinue } diff --git a/website/source/docs/builders/lxd.html.md b/website/source/docs/builders/lxd.html.md index 4915e1e28..019b97534 100644 --- a/website/source/docs/builders/lxd.html.md +++ b/website/source/docs/builders/lxd.html.md @@ -54,6 +54,9 @@ Below is a fully functioning example. ### Optional: +- `init_sleep` (string) - The number of seconds to sleep between launching the + LXD instance and provisioning it; defaults to 3 seconds. + - `name` (string) - The name of the started container. Defaults to `packer-$PACKER_BUILD_NAME`.