minor LXD documentation tweaks
This commit is contained in:
parent
088b4ab275
commit
7253d6547b
|
@ -3,6 +3,7 @@ package lxd
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -46,8 +47,9 @@ func (s *stepLxdLaunch) Run(_ context.Context, state multistep.StateBag) multist
|
||||||
|
|
||||||
// TODO: Should we check `lxc info <container>` for "Running"?
|
// 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.
|
// 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
|
return multistep.ActionContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,9 @@ Below is a fully functioning example.
|
||||||
|
|
||||||
### Optional:
|
### 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
|
- `name` (string) - The name of the started container. Defaults to
|
||||||
`packer-$PACKER_BUILD_NAME`.
|
`packer-$PACKER_BUILD_NAME`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue