Sokol spec.json hard-fork update
This guide assumes that you're running this playbook from the same machine you used to make initial deployment of your node. You should already have python
and ansible
installed, and you have the correct ssh keypair to root-access the node.
1) If you already have a cloned version of the poa-devops repository (https://github.com/poanetwork/poa-devops.git), pull the latest changes:
otherwise, clone this repository:
1) create group_vars/all
file:
and set the following variables:
poa_role
- node's role (one ofbootnode
,validator
,moc
,explorer
,netstat
)MAIN_REPO_FETCH: "poanetwork"
)GENESIS_BRANCH: "sokol"
)
2) Create/edit hosts
file:
and put your node's ip address (assuming it's 192.0.2.1) as follows:
make sure you don't have other tags ([...]
) in hosts file, and double check you are using your SOKOL node's IP address.
For those who host multiple nodes:
if all your nodes are of the same role (e.g. all bootnodes), you can run this playbook on all of them by listing their ips, e.g.
if you host nodes of different types you can set
poa_role
individually against the corresponding ip address like so:on lines where you omitted explicit
poa_role
, the value fromgroup_vars/all
is used.
3) Run the playbook:
If you get a ssh connection error, try to add -e 'ansible_ssh_user=ubuntu'
to the command line above, substituting ubuntu
with correct ssh username, which is usually either ubuntu
or root
or poa
or centos
depending on your setup
4) Verify that your node is active in the netstat of the corresponding network (https://sokol-netstat.poa.network/ for sokol
)
5) connect to the node
switch to the home folder of corresponding role:
and check the update time of spec.json
(should be about the time you started the playbook)
also check that backup was created:
Last updated