Skip to content

Commit f410aa6

Browse files
authored
Merge pull request 0xPolygon#2620 from 0xsajal/patch-14
Update validator-ansible.md
2 parents 07fe065 + 0d914e5 commit f410aa6

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

docs/pos/how-to/validator/validator-ansible.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ playbook: playbooks/network.yml
114114
Run the sentry node setup with sudo privileges:
115115

116116
```sh
117-
ansible-playbook -l sentry playbooks/network.yml --extra-var="bor_version=v1.1.0 ansible-playbook playbooks/network.yml --extra-var="bor_version=v1.3.7 heimdall_version=v1.0.7 network=mainnet node_type=sentry"
117+
ansible-playbook -l sentry playbooks/network.yml --extra-var="bor_version=v2.0.0 ansible-playbook playbooks/network.yml --extra-var="bor_version=v2.0.0 heimdall_version=v1.2.0 network=mainnet node_type=sentry"
118118
```
119119
120120
Once the setup is complete, you will see a message of completion on the terminal.
@@ -150,7 +150,7 @@ xxx.xxx.xx.xx | SUCCESS => {
150150
Do a test run of the validator node setup by running the following command:
151151
152152
```sh
153-
ansible-playbook -l validator playbooks/network.yml --extra-var="bor_version=v1.1.0 ansible-playbook playbooks/network.yml --extra-var="bor_version=v1.3.7 heimdall_version=v1.0.7 network_version=mainnet-v1 node_type=validator heimdall_network=mainnet" --list-hosts
153+
ansible-playbook -l validator playbooks/network.yml --extra-var="bor_version=v2.0.0 ansible-playbook playbooks/network.yml --extra-var="bor_version=v2.0.0 heimdall_version=v1.2.0 network_version=mainnet-v1 node_type=validator heimdall_network=mainnet" --list-hosts
154154
```
155155

156156
You should see an output like this:
@@ -189,18 +189,7 @@ Open the config file for editing by running `vi /var/lib/heimdall/config/config.
189189
In the `config.toml` file, update the following parameters:
190190

191191
* `moniker` — any name. Example: `moniker = "my-full-node"`.
192-
* `seeds` — the seed node addresses consisting of a node ID, an IP address, and a port.
193-
194-
Use the following values for mainnet:
195-
196-
```toml
197-
seeds="1500161dd491b67fb1ac81868952be49e2509c9f@52.78.36.216:26656,dd4a3f1750af5765266231b9d8ac764599921736@3.36.224.80:26656,8ea4f592ad6cc38d7532aff418d1fb97052463af@34.240.245.39:26656,e772e1fb8c3492a9570a377a5eafdb1dc53cd778@54.194.245.5:26656,6726b826df45ac8e9afb4bdb2469c7771bd797f1@52.209.21.164:26656"
198-
```
199-
200-
!!! info "Amoy node seeds"
201-
202-
The Heimdall and Bor seeds don't need to be configured manually for Amoy testnet since they've already been included at genesis.
203-
192+
* `seeds` — the seed node addresses consisting of a node ID, an IP address, and a port. The seeds are provided in the next section.
204193
* `pex` — set the value to `true` to enable the peer exchange. Example: `pex = true`.
205194
* `private_peer_ids` — the node ID of Heimdall set up on the validator machine.
206195

@@ -220,15 +209,7 @@ Finally, save the changes in `config.toml`.
220209

221210
Open the config file for editing by running: `vi /var/lib/bor/config.toml`.
222211

223-
In `config.toml`, ensure the boot node addresses consisting of a node ID, an IP address, and a port by adding them under bootnodes in `[p2p.discovery]` section:
224-
225-
```toml
226-
-bootnodes "enode://b8f1cc9c5d4403703fbf377116469667d2b1823c0daf16b7250aa576bacf399e42c3930ccfcb02c5df6879565a2b8931335565f0e8d3f8e72385ecf4a4bf160a@3.36.224.80:30303", "enode://8729e0c825f3d9cad382555f3e46dcff21af323e89025a0e6312df541f4a9e73abfa562d64906f5e59c51fe6f0501b3e61b07979606c56329c020ed739910759@54.194.245.5:30303"
227-
```
228-
229-
!!! info "Amoy node seeds"
230-
231-
The Heimdall and Bor seeds don't need to be configured manually for Amoy testnet since they've already been included at genesis.
212+
In `config.toml`, ensure the boot node addresses consisting of a node ID, an IP address, and a port by adding them under bootnodes in `[p2p.discovery]` section. The bootnodes are provided in the next section.
232213

233214
In `config.toml`, ensure the `static-nodes` parameter has the following values:
234215

@@ -246,6 +227,10 @@ To get the node ID of Bor on the validator machine:
246227

247228
Finally, save the changes in `config.toml`.
248229

230+
### Seeds and Bootnodes
231+
232+
The latest bor and heimdall seeds can be found [here](https://docs.polygon.technology/pos/reference/seed-and-bootnodes/). Adding them will ensure your node connects to the peers.
233+
249234
### Configure firewall
250235

251236
The sentry machine must have the following ports accessible from the public internet `0.0.0.0/0`:

0 commit comments

Comments
 (0)