Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
a9715efd
Commit
a9715efd
authored
Jul 04, 2013
by
Eric Lathrop
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add file provisioner documentation.
parent
3957d3da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
website/source/docs/provisioners/file.html.markdown
website/source/docs/provisioners/file.html.markdown
+31
-0
website/source/docs/provisioners/shell.html.markdown
website/source/docs/provisioners/shell.html.markdown
+1
-1
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/provisioners/file.html.markdown
0 → 100644
View file @
a9715efd
---
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.
website/source/docs/provisioners/shell.html.markdown
View file @
a9715efd
...
...
@@ -23,7 +23,7 @@ The example below is fully functional.
## Configuration Reference
The reference of available configuratin options is listed below. The only
The reference of available configurati
o
n options is listed below. The only
required element is either "inline" or "script". Every other option is optional.
Exactly _one_ of the following is required:
...
...
website/source/layouts/docs.erb
View file @
a9715efd
...
...
@@ -36,6 +36,7 @@
<ul>
<li><h4>
Provisioners
</h4></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>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment