Skip to content

Commit e748199

Browse files
Update
1 parent c3ee754 commit e748199

File tree

2 files changed

+43
-11
lines changed

2 files changed

+43
-11
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Design principles:
44

55
1. Support both mainnet and testnet
66
1. Only support chains with direct binary installation. For docker installation (Arbitrum and Aurora), users should just refer to the official doc
7-
1. Can be used for version upgrade (default) and initial installation (with an extra flag)
8-
1. Assume that golang already exists on the server
7+
1. Can be used for version upgrade (default) and initial installation (with an extra "mode=full" flag)
8+
1. Assume that Golang already exists on the server
99

1010
## TL/DR
1111

12-
You run one playbook to set up a node or update a node version. Here is a few examples:
12+
You run one playbook to set up a node or update version. Here is a few examples:
1313

1414
```bash
1515
# Mainnet: upgrade version
@@ -20,12 +20,20 @@ ansible-playbook ethereum.yml -e "target=ethereum_testnet"
2020
ansible-playbook ethereum.yml -e "target=ethereum_mainnet mode=full"
2121
```
2222

23+
## Setup
24+
25+
Please first copy the sample inventory file to your own inventory file so you can customize the IPs etc:
26+
27+
```bash
28+
cp inventory.sample inventory.ini
29+
```
30+
2331
## Supported Modes
2432

25-
| Mode | Flags |
26-
| -------------------- | ---------------------- |
27-
| Initial Installation | `target=XYZ mode=full` |
28-
| Version Upgrade | `target=XYZ` |
33+
| Mode | Flags |
34+
| ----------------- | ---------------------- |
35+
| Full Installation | `target=XYZ mode=full` |
36+
| Version Upgrade | `target=XYZ` |
2937

3038
## Supported Nodes
3139

inventory.sample

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
[ethereum]
2-
ethereum_mainnet ansible_host=10.0.0.1 node_type=mainnet
3-
ethereum_testnet ansible_host=10.0.0.2 node_type=mainnet
2+
ethereum_mainnet ansible_host=IP node_type=mainnet
3+
ethereum_testnet ansible_host=IP node_type=testnet
4+
5+
[moonbeam]
6+
moonbeam_mainnet ansible_host=IP node_type=mainnet
7+
moonbeam_mainnet ansible_host=IP node_type=testnet
8+
9+
[celo]
10+
celo_mainnet ansible_host=IP node_type=mainnet celo_address=""
11+
celo_testnet ansible_host=IP node_type=testnet celo_address=""
12+
13+
[avalanche]
14+
avalanche_mainnet ansible_host=IP node_type=mainnet
15+
avalanche_testnet ansible_host=IP node_type=testnet
16+
17+
[binance]
18+
binance_mainnet ansible_host=IP node_type=mainnet
19+
binance_testnet ansible_host=IP node_type=testnet
20+
21+
[polygon]
22+
polygon_mainnet ansible_host=IP node_type=mainnet
23+
polygon_testnet ansible_host=IP node_type=testnet
24+
25+
[fantom]
26+
fantom_mainnet ansible_host=IP node_type=mainnet
27+
fantom_testnet ansible_host=IP node_type=testnet
428

529
[all:vars]
630
ansible_user=ubuntu
7-
ansible_port=2200
31+
ansible_port=22
832
ansible_ssh_private_key_file="~/.ssh/id_rsa"
933
user_directory='/home/{{ ansible_user }}'
1034
node_type_varfile='group_vars/{{ node_type }}.yml'
11-
nickname='polkachu'
35+
nickname=''

0 commit comments

Comments
 (0)