From ca6ef4d1e1899586aae39a29ca1e22bdf714ddf3 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 15 Sep 2014 15:43:10 +0400 Subject: [PATCH 1/3] Update digitalocean.html.markdown update docs --- website/source/docs/builders/digitalocean.html.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/source/docs/builders/digitalocean.html.markdown b/website/source/docs/builders/digitalocean.html.markdown index f7ff676ea..c1aee6feb 100644 --- a/website/source/docs/builders/digitalocean.html.markdown +++ b/website/source/docs/builders/digitalocean.html.markdown @@ -36,8 +36,15 @@ each category, the available configuration keys are alphabetized. If not specified, Packer will use the environment variable `DIGITALOCEAN_CLIENT_ID`, if set. +* `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: +* `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 sets the hostname of the machine to this value. From 018601058c114b0e636848693ca005f48ac400ec Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 15 Sep 2014 15:43:54 +0400 Subject: [PATCH 2/3] Update digitalocean.html.markdown separate v1 and v2 api --- website/source/docs/builders/digitalocean.html.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/source/docs/builders/digitalocean.html.markdown b/website/source/docs/builders/digitalocean.html.markdown index c1aee6feb..a4b099785 100644 --- a/website/source/docs/builders/digitalocean.html.markdown +++ b/website/source/docs/builders/digitalocean.html.markdown @@ -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 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 retrieve this on the "API" page visible after logging into your account @@ -36,6 +36,8 @@ each category, the available configuration keys are alphabetized. If not specified, Packer will use the environment variable `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. From bb484e88a297c7df3db3e510bfddc0ba8f5e3dc0 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 15 Sep 2014 15:44:27 +0400 Subject: [PATCH 3/3] Update digitalocean.html.markdown fix mistake --- website/source/docs/builders/digitalocean.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/builders/digitalocean.html.markdown b/website/source/docs/builders/digitalocean.html.markdown index a4b099785..0f7d50019 100644 --- a/website/source/docs/builders/digitalocean.html.markdown +++ b/website/source/docs/builders/digitalocean.html.markdown @@ -45,7 +45,7 @@ each category, the available configuration keys are alphabetized. ### 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. + Also it can be specified via environment variable `DIGITALOCEAN_API_URL`, if set. * `droplet_name` (string) - The name assigned to the droplet. DigitalOcean sets the hostname of the machine to this value.