Add file provisioner documentation.
This commit is contained in:
parent
3957d3dadc
commit
a9715efd71
website/source
31
website/source/docs/provisioners/file.html.markdown
Normal file
31
website/source/docs/provisioners/file.html.markdown
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
layout: "docs"
|
||||||
|
---
|
||||||
|
|
||||||
|
# File Provisioner
|
||||||
|
|
||||||
|
Type: `file`
|
||||||
|
|
||||||
|
The file provisioner uploads files to machines build by Packer.
|
||||||
|
|
||||||
|
## Basic Example
|
||||||
|
|
||||||
|
<pre class="prettyprint">
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"source": "app.tar.gz",
|
||||||
|
"destination": "/tmp/app.tar.gz"
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
## Configuration Reference
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
* `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.
|
@ -23,7 +23,7 @@ The example below is fully functional.
|
|||||||
|
|
||||||
## Configuration Reference
|
## Configuration Reference
|
||||||
|
|
||||||
The reference of available configuratin options is listed below. The only
|
The reference of available configuration options is listed below. The only
|
||||||
required element is either "inline" or "script". Every other option is optional.
|
required element is either "inline" or "script". Every other option is optional.
|
||||||
|
|
||||||
Exactly _one_ of the following is required:
|
Exactly _one_ of the following is required:
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><h4>Provisioners</h4></li>
|
<li><h4>Provisioners</h4></li>
|
||||||
<li><a href="/docs/provisioners/shell.html">Shell Scripts</a></li>
|
<li><a href="/docs/provisioners/shell.html">Shell Scripts</a></li>
|
||||||
|
<li><a href="/docs/provisioners/file.html">File Uploads</a></li>
|
||||||
<li><a href="/docs/provisioners/custom.html">Custom</a></li>
|
<li><a href="/docs/provisioners/custom.html">Custom</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user