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
a7976b39
Commit
a7976b39
authored
Jun 18, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: document digitalocean builder
parent
75b2fab7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
0 deletions
+83
-0
website/source/docs/builders/digitalocean.html.markdown
website/source/docs/builders/digitalocean.html.markdown
+82
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/builders/digitalocean.html.markdown
0 → 100644
View file @
a7976b39
---
layout
:
"
docs"
---
# DigitalOcean Builder
Type:
`digitalocean`
The
`digitalocean`
builder is able to create new images for use with
[
DigitalOcean
](
http://www.digitalocean.com
)
. The builder takes a source
image, runs any provisioning necessary on the image after launching it,
then snapshots it into a reusable image. This reusable image can then be
used as the foundation of new servers that are launched within DigitalOcean.
The builder does _not_ manage images. Once it creates an image, it is up to
you to use it or delete it.
## Configuration Reference
There are many configuration options available for the builder. They are
segmented below into two categories: required and optional parameters. Within
each category, the available configuration keys are alphabetized.
Required:
*
`api_key`
(string) - The API key to use to access your account. You can
retrieve this on the "API" page visible after logging into your account
on DigitalOcean.
*
`client_id`
(string) - The client ID to use to access your account. You can
find this on the "API" page visible after logging into your account on
DigitalOcean.
Optional:
*
`event_delay`
(string) - The delay, as a duration string, before checking
the status of an event. DigitalOcean's current API has consistency issues
where events take time to appear after being created. This defaults to "5s"
and generally shouldn't have to be changed.
*
`image_id`
(int) - The ID of the base image to use. This is the image that
will be used to launch a new droplet and provision it. Defaults to "284203",
which happens to be "Ubuntu 12.04 x64 Server."
*
`region_id`
(int) - The ID of the region to launch the droplet in. Consequently,
this is the region where the snapshot will be available. This defaults to
"1", which is "New York."
*
`size_id`
(int) - The ID of the droplet size to use. This defaults to "66,"
which is the 512MB droplet.
*
`snapshot_name`
(string) - The name of the resulting snapshot that will
appear in your account. This must be unique. To help make this unique,
certain template parameters are available for this value, and are documented
below.
*
`ssh_port`
(int) - The port that SSH will be available on. Defaults to port
22.
*
`ssh_timeout`
(string) - The time to wait for SSH to become available
before timing out. The format of this value is a duration such as "5s"
or "5m". The default SSH timeout is "1m".
*
`ssh_username`
(string) - The username to use in order to communicate
over SSH to the running droplet. Default is "root".
## Basic Example
Here is a basic example. It is completely valid as soon as you enter your
own access tokens:
<pre
class=
"prettyprint"
>
{
"type": "digitalocean",
"client_id": "YOUR CLIENT ID",
"api_key": "YOUR API KEY"
}
</pre>
## Snapshot Name Variables
TODO
website/source/layouts/docs.erb
View file @
a7976b39
...
...
@@ -43,6 +43,7 @@
<li><a
href=
"/docs/templates/configuration-templates.html"
>
Configuration Templates
</a></li>
<li
class=
"nav-header"
>
Builders
</li>
<li><a
href=
"/docs/builders/digitalocean.html"
>
DigitalOcean
</a></li>
<li><a
href=
"/docs/builders/amazon-ebs.html"
>
EC2 (AMI)
</a></li>
<li><a
href=
"/docs/builders/virtualbox.html"
>
VirtualBox
</a></li>
<li><a
href=
"/docs/builders/vmware.html"
>
VMware
</a></li>
...
...
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