website: add more info to the file provisioner page
This commit is contained in:
parent
49dc2c4cba
commit
f1c8f0a8cd
|
@ -6,7 +6,10 @@ layout: "docs"
|
||||||
|
|
||||||
Type: `file`
|
Type: `file`
|
||||||
|
|
||||||
The file provisioner uploads files to machines build by Packer.
|
The file provisioner uploads files to machines built by Packer. The
|
||||||
|
recommended usage of the file provisioner is to use it to upload files,
|
||||||
|
and then use [shell provisioner](/docs/provisioners/shell.html) to move
|
||||||
|
them to the proper place, set permissions, etc.
|
||||||
|
|
||||||
## Basic Example
|
## Basic Example
|
||||||
|
|
||||||
|
@ -23,9 +26,9 @@ The file provisioner uploads files to machines build by Packer.
|
||||||
The available configuration options are listed below. All elements are required.
|
The available configuration options are listed below. All elements are required.
|
||||||
|
|
||||||
* `source` (string) - The path to a local file to upload to the machine. The
|
* `source` (string) - The path to a local file to upload to the machine. The
|
||||||
path can be absolute or relative. If it is relative, it is relative to the
|
path can be absolute or relative. If it is relative, it is relative to the
|
||||||
working directory when ?Packer is executed.
|
working directory when Packer is executed.
|
||||||
|
|
||||||
* `destination` (string) - The path where the file will be uploaded to in the
|
* `destination` (string) - The path where the file will be uploaded to in the
|
||||||
machine. This value must be a writable location and any parent directories
|
machine. This value must be a writable location and any parent directories
|
||||||
must already exist.
|
must already exist.
|
||||||
|
|
Loading…
Reference in New Issue