This role is intendent to prepare list of sentry/validator nodes id and assign this list to the specific host named "COMMON_DATA_HOST".
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)
- 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.
This role simply collect facts from running services so these facts should be used in other roles like albertandrejev.tendermint_node
.
---
- 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
Apache 2.0
Albert Andrejv [email protected]