Skip to content

This repository contains Ansible role to gather tendermint nodes ids. Topics Resources

Notifications You must be signed in to change notification settings

opentechorg/ansible-collect-nodes-ids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collect nodes ids

This role is intendent to prepare list of sentry/validator nodes id and assign this list to the specific host named "COMMON_DATA_HOST".

Requirements

There is only one specal requirement. You should have tendermint sentry and validator nodes installed, because this role will collect those nodes ids. In order to properly collect ids you should run this role using serial: 1 option in the playbook (see. "Example Playbook" section)

Role Variables

  • rpc_status_url - Contains URL to the node status

External vairable: This role will set two external variable and this variables will be used by albertandrejev.tendermint_node role.

  • sentry_config - It will contain array of objects with following shape: { id: <sentry node id>, private_address: <sentry node IP> }
  • validator_ids - list of validators ids.

Dependencies

This role simply collect facts from running services so these facts should be used in other roles like albertandrejev.tendermint_node.

Example Playbook

---
- hosts: localhost
  gather_facts: false
  tasks:
    - name: Register dummy host with variables
      add_host:
        name: "COMMON_DATA_HOST"
        sentry_config: []
        validator_ids: []

- hosts: nodes_hosts
  gather_facts: false
  serial: 1
  roles:
    - albertandrejev.collect_nodes_ids

License

Apache 2.0

Author Information

Albert Andrejv [email protected]

About

This repository contains Ansible role to gather tendermint nodes ids. Topics Resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published