Commit Graph

12 Commits

Author SHA1 Message Date
Matthew Hooker 7a189a83a1
fix imports
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker a831d522be
change run signatures
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.

`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker 366dc3da0a
move multistep imports to helper.
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker ebe995c0ff
run goimports 2018-01-22 17:21:10 -08:00
Matt Schreiber 1f2135f65e
Add options to LXC builder for influencing for how containers are built and started
via

- create_options: a list of options passed to lxc-create
- start_options: a list of options passed to lxc-start
- attach_options: a list of options passed to lxc-attach

Also extended existing LXC builder BATS tests to exercise the new builder
options, and added website docs.
2017-10-30 21:48:43 -04:00
Megan Marsh 8d24b3930a cleanup imports and rebase artifacts 2017-09-05 15:23:22 -07:00
Chris Lundquist 2d19b4f2d2 Revert "[lxc] only build for linux. Ignore vim swp files."
This reverts commit 60409dc678273864dbb29f624a669d00b4cc0134.
2017-09-05 15:17:15 -07:00
Chris Lundquist 8b4e94d9c6 [lxc] remove commented code 2017-09-05 15:17:15 -07:00
Chris Lundquist e23920a6b9 [lxc] only build for linux. Ignore vim swp files. 2017-09-05 15:17:15 -07:00
Chris Lundquist 15c18c83a9 [lxc] default to target runlevel 3 2017-09-05 15:17:15 -07:00
Chris Lundquist ddbb584235 [lxc] Ubuntu likes runlevel 5 2017-09-05 15:17:15 -07:00
Michele Catalano 659a0da594 Add lxc builder to packer 2017-09-05 15:15:28 -07:00