Merge branch 'digitalocean' of github.com:vtolstov/packer into digitalocean

This commit is contained in:
Vasiliy Tolstov 2014-10-03 00:04:33 +04:00
commit 90077c6e05
1 changed files with 10 additions and 1 deletions

View File

@ -22,7 +22,7 @@ There are many configuration options available for the builder. They are
segmented below into two categories: required and optional parameters. Within segmented below into two categories: required and optional parameters. Within
each category, the available configuration keys are alphabetized. each category, the available configuration keys are alphabetized.
### Required: ### Required v1 api:
* `api_key` (string) - The API key to use to access your account. You can * `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 retrieve this on the "API" page visible after logging into your account
@ -36,8 +36,17 @@ each category, the available configuration keys are alphabetized.
If not specified, Packer will use the environment variable If not specified, Packer will use the environment variable
`DIGITALOCEAN_CLIENT_ID`, if set. `DIGITALOCEAN_CLIENT_ID`, if set.
### Required v2 api:
* `api_token` (string) - The client TOKEN to use to access your account. If it
specified, then use v2 api (current), if not then used old (v1) deprecated api.
Also it can be specified via environment variable `DIGITALOCEAN_API_TOKEN`, if set.
### Optional: ### Optional:
* `api_url` (string) - API endpoint, by default use https://api.digitalocean.com
Also it can be specified via environment variable `DIGITALOCEAN_API_URL`, if set.
* `droplet_name` (string) - The name assigned to the droplet. DigitalOcean * `droplet_name` (string) - The name assigned to the droplet. DigitalOcean
sets the hostname of the machine to this value. sets the hostname of the machine to this value.