Browse Source

fix integration script (#3667)

pull/3637/head
Carlos Flores 6 years ago
committed by Ethan Buchman
parent
commit
5997e75c84
3 changed files with 14 additions and 10 deletions
  1. +1
    -1
      CHANGELOG_PENDING.md
  2. +9
    -7
      docs/networks/terraform-and-ansible.md
  3. +4
    -2
      networks/remote/integration.sh

+ 1
- 1
CHANGELOG_PENDING.md View File

@ -59,5 +59,5 @@
* `Mempool#Update` and `BlockExecutor#Commit` now accept * `Mempool#Update` and `BlockExecutor#Commit` now accept
`[]*abci.ResponseDeliverTx` - list of `DeliverTx` responses, which should `[]*abci.ResponseDeliverTx` - list of `DeliverTx` responses, which should
match `block.Txs` match `block.Txs`
- [networks] fixes ansible integration script (@carlosflrs)
- [lite] \#3669 Add context parameter to RPC Handlers in proxy routes (@yutianwu) - [lite] \#3669 Add context parameter to RPC Handlers in proxy routes (@yutianwu)

+ 9
- 7
docs/networks/terraform-and-ansible.md View File

@ -62,16 +62,18 @@ There are several roles that are self-explanatory:
First, we configure our droplets by specifying the paths for tendermint First, we configure our droplets by specifying the paths for tendermint
(`BINARY`) and the node files (`CONFIGDIR`). The latter expects any (`BINARY`) and the node files (`CONFIGDIR`). The latter expects any
number of directories named `node0, node1, ...` and so on (equal to the number of directories named `node0, node1, ...` and so on (equal to the
number of droplets created). For this example, we use pre-created files
from [this
directory](https://github.com/tendermint/tendermint/tree/master/docs/examples).
To create your own files, use either the `tendermint testnet` command or
review [manual deployments](./deploy-testnets.md).
number of droplets created).
Here's the command to run:
To create the node files run:
``` ```
ansible-playbook -i inventory/digital_ocean.py -l sentrynet config.yml -e BINARY=$GOPATH/src/github.com/tendermint/tendermint/build/tendermint -e CONFIGDIR=$GOPATH/src/github.com/tendermint/tendermint/docs/examples
tendermint testnet
```
Then, to configure our droplets run:
```
ansible-playbook -i inventory/digital_ocean.py -l sentrynet config.yml -e BINARY=$GOPATH/src/github.com/tendermint/tendermint/build/tendermint -e CONFIGDIR=$GOPATH/src/github.com/tendermint/tendermint/networks/remote/ansible/mytestnet
``` ```
Voila! All your droplets now have the `tendermint` binary and required Voila! All your droplets now have the `tendermint` binary and required


+ 4
- 2
networks/remote/integration.sh View File

@ -30,7 +30,6 @@ go get $REPO
cd $GOPATH/src/$REPO cd $GOPATH/src/$REPO
## build ## build
git checkout zach/ansible
make get_tools make get_tools
make get_vendor_deps make get_vendor_deps
make build make build
@ -84,8 +83,11 @@ ip3=$(strip $ip3)
# all the ansible commands are also directory specific # all the ansible commands are also directory specific
cd $GOPATH/src/github.com/tendermint/tendermint/networks/remote/ansible cd $GOPATH/src/github.com/tendermint/tendermint/networks/remote/ansible
# create config dirs
tendermint testnet
ansible-playbook -i inventory/digital_ocean.py -l sentrynet install.yml ansible-playbook -i inventory/digital_ocean.py -l sentrynet install.yml
ansible-playbook -i inventory/digital_ocean.py -l sentrynet config.yml -e BINARY=$GOPATH/src/github.com/tendermint/tendermint/build/tendermint -e CONFIGDIR=$GOPATH/src/github.com/tendermint/tendermint/docs/examples
ansible-playbook -i inventory/digital_ocean.py -l sentrynet config.yml -e BINARY=$GOPATH/src/github.com/tendermint/tendermint/build/tendermint -e CONFIGDIR=$GOPATH/src/github.com/tendermint/tendermint/networks/remote/ansible/mytestnet
sleep 10 sleep 10


Loading…
Cancel
Save