* start using `go:generate packer-sdc struct-markdown` * Update Makefile remove @go install ./cmd/struct-markdown * run go generate for struct-markdown * use //go:generate packer-sdc mapstructure-to-hcl2 * run go generate for mapstructure-to-hcl2 * remove struct-markdown and mapstructure-to-hcl2 * vendor vendors
22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
<!-- Code generated from the comments of the Config struct in provisioner/file/provisioner.go; DO NOT EDIT MANUALLY -->
|
|
|
|
- `sources` ([]string) - A list of sources to upload. This can be used in place of the `source`
|
|
option if you have several files that you want to upload to the same
|
|
place. Note that the destination must be a directory with a trailing
|
|
slash, and that all files listed in `sources` will be uploaded to the
|
|
same directory with their file names preserved.
|
|
|
|
- `direction` (string) - The direction of the file transfer. This defaults to "upload". If it is
|
|
set to "download" then the file "source" in the machine will be
|
|
downloaded locally to "destination"
|
|
|
|
- `generated` (bool) - For advanced users only. If true, check the file existence only before
|
|
uploading, rather than upon pre-build validation. This allows users to
|
|
upload files created on-the-fly. This defaults to false. We
|
|
don't recommend using this feature, since it can cause Packer to become
|
|
dependent on system state. We would prefer you generate your files before
|
|
the Packer run, but realize that there are situations where this may be
|
|
unavoidable.
|
|
|
|
<!-- End of code generated from the comments of the Config struct in provisioner/file/provisioner.go; -->
|