From 4750dbba77f84ec26dc597db3f39da27b518cf91 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 31 Mar 2017 21:31:46 +0400 Subject: [PATCH] [ansible-tendermint] rename playbook for clarity --- ansible-tendermint/README.md | 20 +++++++++++++++++-- .../{genesis.yml => collect_public_keys.yml} | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) rename ansible-tendermint/{genesis.yml => collect_public_keys.yml} (77%) diff --git a/ansible-tendermint/README.md b/ansible-tendermint/README.md index f2ff86b0..ea177164 100644 --- a/ansible-tendermint/README.md +++ b/ansible-tendermint/README.md @@ -62,8 +62,24 @@ This playbook will install Tendermint and will create all the required directories. But **it won't start the Tendermint if there are no validators in genesis file**. See `templates/genesis.json.j2`. -You will need to collect validators public keys manually or using `genesis.yml` -given you have SSH access to all the nodes. +You will need to collect validators public keys manually or using +`collect_public_keys.yml` given you have SSH access to all the nodes and add +them to `templates/genesis.json.j2`: + +``` +{ + "app_hash": "", + "chain_id": "{{tendermint_chain_id}}", + "genesis_time": "{{tendermint_genesis_time}}", + "validators": [ + { + "pub_key": [1, "3A4B5F5C34B19E5DBD2DC68E7D6FF7F46859A0657EDCA3274235A7EB127A0706"], + "amount": 10, + "name": "1" + } + ] +} +``` ## Testing diff --git a/ansible-tendermint/genesis.yml b/ansible-tendermint/collect_public_keys.yml similarity index 77% rename from ansible-tendermint/genesis.yml rename to ansible-tendermint/collect_public_keys.yml index 914ea9d7..c60fbc0c 100644 --- a/ansible-tendermint/genesis.yml +++ b/ansible-tendermint/collect_public_keys.yml @@ -1,5 +1,5 @@ --- -# Gathers validator public keys from all the nodes to help you form genesis file +# Outputs validator public keys from all the nodes to help you form genesis file - hosts: all vars: