Three playbooks to set up a node.
ansible-playbook -i inventory mina_prekey_setup.yml -e "target=mina1a"
You have two options here. First, you can set up a new keypair according to https://docs.minaprotocol.com/en/using-mina/keypair, and you will need to copy the public key and password to the inventory file to prepare for the next step. The other option is to copy an existing key pair to the server. You will put the my-wallet and my-wallet.pub in the roles->key->files folder, and then run the playbook
ansible-playbook -i inventory mina_key_setup.yml -e "target=mina1a"
ansible-playbook -i inventory mina_postkey_setup.yml -e "target=mina1a"
ansible-playbook -i inventory mina_monitor_server_setup.yml -e "target=mina1a"
Credit: https://github.com/olton/mina-node-monitor/blob/master/server/SERVER-DOCS.md
ansible-playbook -i inventory mina_monitor_client_setup.yml -e "target=mina1a"
Credit: https://github.com/olton/mina-node-monitor/blob/master/client/CLIENT-DOCS.md
I cannot make the mina client to automatically start with the script. Therefore, you should get into the server and run the following:
systemctl --user daemon-reload
systemctl --user stop mina
systemctl --user start mina
systemctl --user enable mina
sudo loginctl enable-linger
To check the health of mina service:
systemctl --user status mina
To check the status of mina client:
mina client status
To check the health of mina block producer sidecar:
sudo journalctl -f -u mina-bp-stats-sidecar.service
B62qizDizMYmXDS7LUkocoYNnrryPCxyrJM2v8eNJzaj31aU9bUfDAM