From 7eba1604869fd0eb8b7f161050fd6c2c05e32d54 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Tue, 31 Oct 2017 10:08:54 +0100 Subject: [PATCH] doc: add docs for aliyun, digitalocean, os and scaleway --- website/source/docs/agent/options.html.md | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/website/source/docs/agent/options.html.md b/website/source/docs/agent/options.html.md index 004fa519b5bb..32e0ec6812a7 100644 --- a/website/source/docs/agent/options.html.md +++ b/website/source/docs/agent/options.html.md @@ -388,6 +388,99 @@ will exit with an error at startup. - `username` (required) - the username to use for auth. - `api_key` (required) - the api key to use for auth. + ### Aliyun (Alibaba Cloud) + + This returns the first private IP address of all servers for the given + `region` with the given `tag_key` and `tag_value`. + + ```sh + $ consul agent -retry-join "provider=aliyun region=... tag_key=consul tag_value=... access_key_id=... access_key_secret=..." + ``` + + ```json + { + "retry_join": ["provider=aliyun region=... tag_key=consul tag_value=... access_key_id=... access_key_secret=..."] + } + ``` + + - `provider` (required) - the name of the provider ("aliyun" in this case). + - `region` (required) - the name of the region. + - `tag_key` (required) - the key of the tag to auto-join on. + - `tag_value` (required) - the value of the tag to auto-join on. + - `access_key_id` (required) -the access key to use for auth. + - `access_key_secret` (required) - the secret key to use for auth. + + The required RAM permission is `ecs:DescribeInstances`. + It is recommended you make a dedicated key used only for auto-joining. + + ### Digital Ocean + + This returns the first private IP address of all servers for the given + `region` with the given `tag_name`. + + ```sh + $ consul agent -retry-join "provider=digitalocean region=... tag_name=... api_token=..." + ``` + + ```json + { + "retry_join": ["provider=digitalocean region=... tag_name=... api_token=..."] + } + ``` + + - `provider` (required) - the name of the provider ("digitalocean" in this case). + - `region` (required) - the name of the region. + - `tag_name` (required) - the value of the tag to auto-join on. + - `api_token` (required) -the token to use for auth. + + ### Openstack + + This returns the first private IP address of all servers for the given + `region` with the given `tag_key` and `tag_value`. + + ```sh + $ consul agent -retry-join "provider=os tag_key=consul tag_value=server username=... password=... auth_url=..." + ``` + + ```json + { + "retry_join": ["provider=os tag_key=consul tag_value=server username=... password=... auth_url=..."] + } + ``` + + - `provider` (required) - the name of the provider ("os" in this case). + - `tag_key` (required) - the key of the tag to auto-join on. + - `tag_value` (required) - the value of the tag to auto-join on. + - `project_id` (optional) - the id of the project (tenant id). + - `username` (optional) - the username to use for auth. + - `password` (optional) - the password to use for auth. + - `token` (optional) - the token to use for auth. + - `auth_url` (optional) - the identity endpoint to use for auth. + - `insecure` (optional) - indicates whether the API certificate should not be checked. Any value means `true`. + + The configuration can also be provided by environment variables. + + ### Scaleway + + This returns the first private IP address of all servers for the given + `region` with the given `tag_key` and `tag_value`. + + ```sh + $ consul agent -retry-join "provider=scaleway organization=my-org tag_name=consul-server token=... region=..." + ``` + + ```json + { + "retry_join": ["provider=scaleway organization=my-org tag_name=consul-server token=... region=..."] + } + ``` + + - `provider` (required) - the name of the provider ("scaleway" in this case). + - `region` (required) - the name of the region. + - `tag_name` (required) - the name of the tag to auto-join on. + - `organization` (optional) - the organization access key to use for auth. + - `token` (optional) - the token to use for auth. + * `-retry-interval` - Time to wait between join attempts. Defaults to 30s.