This Repo contains an ansible Playbook, that will install a Tanssi-Node/Blockproducer/Relayer on your Debian/Ubuntu Server.
To use this Playbook you need:
- ssh access to a Machine with a user that has root permissions
- ansible installed on the Machine you want to execute the Playbook from
- declare some Varibales
- open the TCP Ports 30334 and 30335 to the Internet
- version
- system_username
- tanssi_nodename
- tanssi_blockproducername
- tanssi_relaynodename
- dancebox_state_pruning
- dancebox_block_pruning
- westend_state_pruning
- westend_block_pruning
The Version the Binary of Tanssi-Node will be pulled from GitHub.
version: latest
Thats the username of your Ubuntu/Debian User. If you login into your System for example with the command 'ssh tanssi@' your system_username is 'tanssi'.
system_username: tanssi
Thats the Public Name your Node/Blockproducer/Relayer will have.
You can find your Node here, using the Name you defined here for your Node.
Telemetry
tanssi_nodename: tanssi-user
tanssi_blockproducername: tanssi-user
tanssi_relaynodename: tanssi-user
Setup the state Pruning for the dancebod and westend chain here.
dancebox_state_pruning: 2000
westend_state_pruning: 100
Setup the block Pruning for the dancebod and westend chain here.
dancebox_block_pruning: 2000
westend_block_pruning: 100
- ansible_host
Thats the IP-Address of your Target Machine. Your Machine needs to be accessable using ssh with that IP.
ansible_host: 192.168.1.10
cd into this Repo and run the Playbook with 'ansible-playbook playbook.yml'
Have a look in the logs of your newly created Services with 'journalctl -fu tanssi'.
Just run the playbook again.
It will download the relase that is tagged as "latest" in the GitHub and will restart the tanssi Service afterwards if the downloaded Version is not the same that is already running.