github.com/phobos182/packer@v0.2.3-0.20130819023704-c84d2aeffc68/website/source/docs/provisioners/file.html.markdown (about) 1 --- 2 layout: "docs" 3 --- 4 5 # File Provisioner 6 7 Type: `file` 8 9 The file provisioner uploads files to machines built by Packer. The 10 recommended usage of the file provisioner is to use it to upload files, 11 and then use [shell provisioner](/docs/provisioners/shell.html) to move 12 them to the proper place, set permissions, etc. 13 14 ## Basic Example 15 16 <pre class="prettyprint"> 17 { 18 "type": "file", 19 "source": "app.tar.gz", 20 "destination": "/tmp/app.tar.gz" 21 } 22 </pre> 23 24 ## Configuration Reference 25 26 The available configuration options are listed below. All elements are required. 27 28 * `source` (string) - The path to a local file to upload to the machine. The 29 path can be absolute or relative. If it is relative, it is relative to the 30 working directory when Packer is executed. 31 32 * `destination` (string) - The path where the file will be uploaded to in the 33 machine. This value must be a writable location and any parent directories 34 must already exist.