Skip to content

Commit

Permalink
minor LXD documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampDragons committed Mar 23, 2018
1 parent 088b4ab commit 7253d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/lxd/step_lxd_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package lxd
import (
"context"
"fmt"
"log"
"strconv"
"time"

Expand Down Expand Up @@ -46,8 +47,9 @@ func (s *stepLxdLaunch) Run(_ context.Context, state multistep.StateBag) multist

// TODO: Should we check `lxc info <container>` 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
}

Expand Down
3 changes: 3 additions & 0 deletions website/source/docs/builders/lxd.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit 7253d65

Please sign in to comment.