add terraforce deployment method

This commit is contained in:
Ethan Buchman
2017-04-20 18:24:42 -04:00
parent d07e164796
commit f53fb46302
18 changed files with 554 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#! /bin/bash
set -u
N=$1 # number of nodes
N_=$((N-1))
# stop all tendermint
terraforce ssh --user root --ssh-key $HOME/.ssh/id_rsa --machines "[0-$N_]" rm -rf .tendermint/data
terraforce ssh --user root --ssh-key $HOME/.ssh/id_rsa --machines "[0-$N_]" ./tendermint unsafe_reset_priv_validator