Setup instructions
April 10, 2023 ยท View on GitHub
Setup instructions for Validators provided by enby collective (incomplete!)
Prepare your validator
- ssh into your validator:
ssh root@IP_ADDRESS_VALIDATOR adduser ansibleusermod -aG sudo ansiblevisudo(alternativelysudo ap-get install nano && sudo Editor=nano visudo)
add the following last line: \ansible ALL=(ALL) NOPASSWD:ALL- logout of your validator / shh connection
ssh-copy-id -i ~/.ssh/id_rsa.pub ansible@IP_ADDRESS_VALIDATOR
Prepare your Ansible setup:
sudo apt-get install ansibleansible-galaxy collection install community.generalgh clone https://github.com/enby-collective/validator.gitcd validatorcp inventory.sample inventory- edit your
inventoryfile and update it as follows :- replace the
IP_ADDRESS_VALIDATORwith the IP of your server - in the
domain_nameadd the Hostname of your server - in the
letsencrypt_emailadd your email - give your assigned values in
validator_name,log_name, under[kusama:children],loki_passwordanddata_password
- replace the
- Open the
group_vars/kusama.ymlfile and update the value ofpolkadot_db_snapshot_urlso that it reflects the latest snapshot from https://polkachu.com/snapshots/kusama - Open the
group_vars/validators.ymlfile and update the value of thepolkadot_versionwith the version that correspond to the latest polkadot release.
Start the Ansible setup
- Before running the command
ansible-playbook -i inventory polkadot_full_setup.yml -e "target=kusama1"make sure to update the value oftargetto the kusama name that corresponds to your server, e.g. kusama2 or kusama3, etc.