Make sure you have all prerequisites set up
[deployment/ansible/inventory/hosts.yml
]
all:
vars:
chain_id: <chain-id>
...
Every network must have a unique chain ID (e.g. test-net
, main-net
etc.)
[deployment/ansible/inventory/hosts.yml
]
all:
...
children:
genesis:
hosts:
<genesis node IP address or hostname>
...
validators:
hosts:
<genesis node IP address or hostname>
...
You should set the same address for validators
and genesis
hosts because a genesis node is also a validator node
[deployment/ansible/roles/configure/vars/validator.yml
]
config:
p2p:
persistent_peers: "<node1-ID>@<node1-IP>:26656,..."
...
- For
testnet-2.0
ormain-net
get the latestpersistent_peers
string from the CSA slack channel
[deployment/ansible/inventory/group_vars/genesis.yaml
]
accounts:
- name: validator-key
passphrase: password123
roles:
- NodeAdmin
- Trustee
Genesis nodes should be created with at least one validator and trustee accounts
ansible-playbook -i ./deployment/ansible/inventory -u <target-host-ssh-user> ./deployment/ansible/deploy.yml
<target-host-ssh-username>
- target host ssh user- Ansible provisioning can take several minutes depending on number of nodes being provisioned
sudo su -s /bin/bash cosmovisor
dcld status