Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
segfaultdoc committed Mar 8, 2023
1 parent 0137826 commit 9d68834
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
* c3.large machines have 2 disks. one of them is mounted to / and the other one has to be supplied in the defaults
* install ansible locally and edit the hosts.yaml file in the root location to point to your validator's IP address and the ssh parameters
* basic command
* make sure to create `hosts.yaml` file using the `hosts.example.yaml` as a guide
```
ansible-playbook setup.yaml -i hosts.yaml -e id_path=test-id.json -e vote_path=test-vote.json
ansible-playbook setup.yaml -i hosts.yaml -e id_path=./keys/validator-keypair.json -e vote_path=./keys/vote-account-keypair.json -e region=ny -e cluster=testnet -e rpc_address=https://api.testnet.solana.com
```

* the above assumes that test-id.json and test-vote.json have been generated using solana-keygen and that the vote-account has already been created. the ansible playbook executes the vote-account command to see that test-vote.json actually exists and is associated with test-id.json. it will fail before starting the validator if that is not the case
* The above assumes that validator-keypair.json and vote-account-keypair.json have been generated using solana-keygen and that the vote-account has already been created. The ansible playbook executes the vote-account command to see that vote-account-keypair.json actually exists and is associated with validator-keypair.json. It will fail before starting the validator if that is not the case.

# defaults

Expand Down
3 changes: 2 additions & 1 deletion hosts.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
ansible_user=ubuntu

[validators]
validator ansible_host=0.0.0.0 ansible_user=ubuntu ansible_ssh_private_key_file=~/.ssh/id_rsa
# ansible_host should be the IP of your validator
validator ansible_host=172.1.0.1 ansible_user=ubuntu ansible_ssh_private_key_file=~/.ssh/id_rsa

0 comments on commit 9d68834

Please sign in to comment.