Merge pull request #2 from tendermint/refactor

Refactor branch to master
This commit is contained in:
Greg Szabo 2017-06-06 11:51:22 -04:00 committed by GitHub
commit 86d999a4e9
5 changed files with 8 additions and 6 deletions

View File

@ -87,7 +87,7 @@ Mac OSX:
sudo pip install dopy
```
Amazon AWS inventory dependencies:
#### Amazon AWS inventory dependencies:
Ubuntu/Debian:
```

View File

@ -11,7 +11,7 @@
## tendermint_download stores the link to the specific tendermint release to install
##
#tendermint_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/tendermint/v0.10.0-rc1/tendermint_0.10.0-rc1_linux_amd64.zip"
#tendermint_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/tendermint/v0.10.0/tendermint_0.10.0_linux_amd64.zip"
## tendermint_binary stores the path to a private tendermint binary to install
##
@ -37,7 +37,7 @@
## basecoin_download stores the link to the specific basecoin release to install
##
#basecoin_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/basecoin/v0.4.0/basecoin_0.4.0_linux_amd64.zip"
#basecoin_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/basecoin/v0.5.2/basecoin_0.5.2_linux_amd64.zip"
## basecoin_binary stores the path to a private basecoin binary to install
##

View File

@ -1,6 +1,6 @@
---
basecoin_release_install: true
basecoin_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/basecoin/v0.4.0/basecoin_0.4.0_linux_amd64.zip"
basecoin_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/basecoin/v0.5.2/basecoin_0.5.2_linux_amd64.zip"
basecoin_binary: "{{ lookup('env','GOPATH') | default('') }}/bin/basecoin"

View File

@ -1,6 +1,6 @@
---
tendermint_release_install: true
tendermint_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/tendermint/v0.10.0-rc1/tendermint_0.10.0-rc1_linux_amd64.zip"
tendermint_download: "https://s3-us-west-2.amazonaws.com/tendermint/binaries/tendermint/v0.10.0/tendermint_0.10.0_linux_amd64.zip"
tendermint_binary: "{{ lookup('env','GOPATH') | default('') }}/bin/tendermint"

View File

@ -29,13 +29,15 @@ TESTNET_NAME="testnet-servers"
terraform env new "$TESTNET_NAME"
```
Note this `terraform env` command is only available in terraform `v0.9` and up.
## Execution
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="<The API token received from DigitalOcean>"
SSH_IDS="[ \"<The SSH ID received from the curl call above.>\" ]"
terraform apply -var TESTNET_NAME="testnet-servers" -var servers=4 -var DO_API_TOKEN="$DO_API_TOKEN" -var ssh_keys=$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"]`.