Upgrade Validator
When a new release is announced (such as in the Celestia Discord channel), you must update your validator to the specified version. This is handled efficiently by modifying the app_version variable in the Ansible playbook.
Key Variable: app_version
app_version: This variable specifies the version of the Celestia app you want to upgrade to. Always check for the latest version announcement on the Celestia Discord channel and update the playbook accordingly.
Example of updating the version:
app_version: "v2.1.2"
When a new version is released (e.g., "v2.1.3"), you must change the app_version variable in the playbook to reflect this new version before running the upgrade.
Steps to Upgrade Validator Node Using Ansible
-
Update the Playbook with the Latest Version:
Edit the
upgrade_validator.ymlplaybook and modify theapp_versionvariable to the latest release from Celestia:app_version: "v2.1.3" # Update this to the latest version as per Discord announcement -
Run the Upgrade Playbook:
After updating the version, execute the playbook to upgrade your validator:
ansible-playbook -i hosts.ini playbooks/upgrade-validator.yml -l <target-host>\
-
Upgrading Multiple Nodes:
To upgrade multiple validator nodes simultaneously, update your
hosts.inifile to include all the validators you want to upgrade. For example:[validators]
validator1 ansible_host=192.168.0.101
validator2 ansible_host=192.168.0.102Then run the playbook for all validators:
ansible-playbook -i hosts.ini playbooks/upgrade_validator.yml -l validators -
Confirm the Upgrade: Once the playbook completes, verify the upgrade by checking the status of the validator service:
sudo systemctl status celestia-appdAdditionally, confirm the running version of the Celestia app:
celestia-appd version
The version should match the one specified in the `app_version` variable.