website: add more info to the file provisioner page

This commit is contained in:
Mitchell Hashimoto 2013-07-04 12:58:11 -07:00
parent 620d6b9339
commit dfdbc1b124
1 changed files with 8 additions and 5 deletions

View File

@ -6,7 +6,10 @@ layout: "docs"
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
@ -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.
* `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
working directory when ?Packer is executed.
path can be absolute or relative. If it is relative, it is relative to the
working directory when Packer is executed.
* `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
* `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
must already exist.