From ee74f9a3a8a9a721bffa6c49516889ad134887a9 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Thu, 1 Jun 2017 00:11:38 -0400 Subject: [PATCH] Enhancements to README.md --- terraform-digitalocean/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terraform-digitalocean/README.md b/terraform-digitalocean/README.md index cbdab472a..b6534794c 100644 --- a/terraform-digitalocean/README.md +++ b/terraform-digitalocean/README.md @@ -34,10 +34,12 @@ terraform env new "$TESTNET_NAME" The below command will create 4 nodes in DigitalOcean. They will be named `testnet-servers-node0` to `testnet-servers-node3` and they will be tagged as `testnet-servers`. ``` DO_API_TOKEN="" -SSH_ID="" -terraform apply -var TESTNET_NAME="testnet-servers" -var servers=4 -var DO_API_TOKEN="$DO_API_TOKEN" -var ssh_keys=[$SSH_ID] +SSH_IDS="[ \"\" ]" +terraform apply -var TESTNET_NAME="testnet-servers" -var servers=4 -var DO_API_TOKEN="$DO_API_TOKEN" -var ssh_keys=$SSH_IDS ``` +Note: `ssh_keys` is a list of strings. You can add multiple keys. For example: `["1234567","9876543"]`. + Alternatively you can use the default settings. The number of default servers is 4 and the testnet name is `tf-testnet1`. Variables can also be defined as environment variables instead of the command-line. Environment variables that start with `TF_VAR_` will be translated into the Terraform configuration. For example the number of servers can be overriden by setting the `TF_VAR_servers` variable. ```