-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain.yaml
139 lines (123 loc) · 5 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
nimbus_enabled: true
nimbus_user: nimbus
nimbus_datadir: /data/nimbus
nimbus_auth_jwt_path: /data/execution-auth.secret
nimbus_execution_engine_endpoint: http://geth:8551
nimbus_beacon_endpoint: "http://{{ nimbus_container_name }}:{{ nimbus_ports_http_beacon }}"
nimbus_announced_ip: "{{ ansible_host }}"
nimbus_announced_ipv6: "{{ ansible_default_ipv6.address if nimbus_ipv6_enabled and ansible_default_ipv6.address is defined else '' }}"
nimbus_mev_boost_endpoint: "http://mev-boost:18550"
nimbus_cleanup: false # when set to "true" it will remove the container
nimbus_ports_p2p_tcp: 9000
nimbus_ports_p2p_udp: 9000
nimbus_ports_http_beacon: 5051
nimbus_ports_metrics: 8008
nimbus_ipv6_enabled: false
nimbus_supernode_enabled: false
nimbus_validator_enabled: false
nimbus_validator_fee_recipient: "0x25941dC771bB64514Fc8abBce970307Fb9d477e9" # theprotocolguild.eth
nimbus_validator_datadir: /data/nimbus-validator
################################################################################
##
## Checkpoint sync container configuration
##
################################################################################
checkpoint_sync_url: https://beaconstate.ethstaker.cc # noqa var-naming[no-role-prefix]
nimbus_checkpoint_container_name: nimbus_checkpoint
nimbus_checkpoint_container_command:
- trustedNodeSync
- --data-dir=/data
nimbus_checkpoint_container_command_extra_args:
- --trusted-node-url={{ checkpoint_sync_url }}
- --network=mainnet
- --backfill=false
nimbus_checkpoint_sync_enabled: true
nimbus_checkpoint_autoremove_enabled: false
################################################################################
##
## Beacon node container configuration
##
################################################################################
nimbus_container_name: nimbus
nimbus_container_image: statusim/nimbus-eth2:multiarch-latest
nimbus_container_env: {}
nimbus_container_ports_ipv4:
- "127.0.0.1:{{ nimbus_ports_http_beacon }}:{{ nimbus_ports_http_beacon }}"
- "0.0.0.0:{{ nimbus_ports_p2p_tcp }}:{{ nimbus_ports_p2p_tcp }}"
- "0.0.0.0:{{ nimbus_ports_p2p_udp }}:{{ nimbus_ports_p2p_udp }}/udp"
nimbus_container_ports_ipv6:
- "[::]:{{ nimbus_ports_p2p_tcp }}:{{ nimbus_ports_p2p_tcp }}"
- "[::]:{{ nimbus_ports_p2p_udp }}:{{ nimbus_ports_p2p_udp }}/udp"
nimbus_container_ports: >-
{{ nimbus_container_ports_ipv4 + (nimbus_container_ports_ipv6 if nimbus_ipv6_enabled and ansible_default_ipv6.address is defined else []) }}
nimbus_container_volumes:
- "{{ nimbus_datadir }}:/data"
- "{{ nimbus_auth_jwt_path }}:/execution-auth.jwt:ro"
nimbus_container_security_opts: []
nimbus_container_stop_timeout: "300"
nimbus_container_networks: []
nimbus_container_command_default:
- --non-interactive=true
- --data-dir=/data
- --log-level=INFO
- --listen-address=0.0.0.0
- --udp-port={{ nimbus_ports_p2p_udp }}
- --tcp-port={{ nimbus_ports_p2p_tcp }}
- --nat=extip:{{ nimbus_announced_ip }}
- --enr-auto-update=false
- --rest
- --rest-port={{ nimbus_ports_http_beacon }}
- --rest-address=0.0.0.0
- --rest-allow-origin=*
- --web3-url={{ nimbus_execution_engine_endpoint }}
- --jwt-secret=/execution-auth.jwt
nimbus_container_command_metrics:
- --metrics
- --metrics-port={{ nimbus_ports_metrics }}
- --metrics-address=0.0.0.0
nimbus_container_command_v6: []
# - --nat=extip:{{ nimbus_announced_ipv6 }} # not supported yet
nimbus_container_supernode_command:
- --subscribe-all-subnets=true
nimbus_container_command: >-
{{
nimbus_container_command_default +
nimbus_container_command_metrics +
(nimbus_container_command_v6 if nimbus_ipv6_enabled and ansible_default_ipv6.address is defined else []) +
(nimbus_container_supernode_command if nimbus_supernode_enabled else [])
}}
nimbus_container_command_extra_args: []
# - --graffiti=hello-world
################################################################################
##
## Validator specific configuration
##
################################################################################
nimbus_validator_container_image: statusim/nimbus-validator-client:multiarch-latest
nimbus_validator_container_name: "{{ nimbus_container_name }}-validator"
nimbus_validator_container_args:
- --validators-dir=/validator-data/keys
- --secrets-dir=/validator-data/secrets
- --suggested-fee-recipient={{ nimbus_validator_fee_recipient }}
nimbus_validator_container_volumes:
- "{{ nimbus_validator_datadir }}:/validator-data"
nimbus_validator_container_command: >-
{{
[
"--beacon-node=" + nimbus_beacon_endpoint
] +
nimbus_validator_container_args +
nimbus_container_command_metrics +
nimbus_container_command_extra_args
}}
# Default image pull policy
nimbus_container_pull: false
################################################################################
##
## MEV Boost configuration
##
################################################################################
nimbus_mev_boost_enabled: false
nimbus_mev_boost_beacon_command:
- --payload-builder=true
- --payload-builder-url={{ nimbus_mev_boost_endpoint }}