Skip to content

Commit

Permalink
nimbus: add light-client service
Browse files Browse the repository at this point in the history
  • Loading branch information
mendelskiv93 committed Feb 12, 2025
1 parent 5392f5b commit 48fa839
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
3 changes: 3 additions & 0 deletions ansible/group_vars/nimbus.holesky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,5 +200,8 @@ open_ports_list:
validator-client:
- { port: '5053-5056', comment: 'Validator Client REST API', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }
- { port: '8109-8112', comment: 'Validator Client Metrics', ipset: 'hq.metrics', iifname: 'wg0' }
light-client:
- { port: '9503', comment: 'Light Client LibP2P', protocol: 'tcp' }
- { port: '9503', comment: 'Light Client Discovery', protocol: 'udp' }

# Fleet layout can be found in: ansible/vars/layout/holesky.yml
4 changes: 3 additions & 1 deletion ansible/group_vars/nimbus.mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,7 @@ open_ports_list:
- { port: '9001-9004', comment: 'Beacon Node discovery', protocol: 'udp' }
- { port: '9201-9204', comment: 'Beacon Node Metrics', ipset: 'hq.metrics', iifname: 'wg0' }
- { port: '9301-9304', comment: 'Beacon Node REST API', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }

light-client:
- { port: '9503', comment: 'Light Client LibP2P', protocol: 'tcp' }
- { port: '9503', comment: 'Light Client Discovery', protocol: 'udp' }
# Fleet layout can be found in: ansible/vars/layout/mainnet.yml
13 changes: 7 additions & 6 deletions ansible/holesky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
- nimbus-holesky-neth
vars_files: layout/holesky.yml
roles:
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-open-ports, tags: open-ports }
- { role: redirect-ports, tags: redirect-ports }
- { role: nimbus-era-files, tags: nimbus-era-files }
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
- { role: update-netplan, tags: update-netplan, when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: swap-file }
- { role: infra-role-open-ports, tags: open-ports }
- { role: redirect-ports, tags: redirect-ports }
- { role: nimbus-era-files, tags: nimbus-era-files }
- { role: infra-role-mev-boost, tags: mev-boost, when: mev_boost_enabled == true }
- { role: infra-role-nimbus-light-client, tags: light-client }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down
15 changes: 8 additions & 7 deletions ansible/mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@
# FIXME: Use all Geth nodes available in the fleet until we resync.
geth_node_api_fleet_names: ['nimbus.geth']
roles:
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: [ swap-file ] }
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: get-geth-api-urls, tags: [ get-geth-api-urls, beacon-node ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: update-netplan, tags: [ update-netplan ], when: ansible_system == 'Linux' }
- { role: infra-role-swap-file, tags: [ swap-file ] }
- { role: infra-role-open-ports, tags: [ open-ports ] }
- { role: infra-role-smart-metrics, tags: [ smart-metrics ] }
- { role: redirect-ports, tags: [ redirect-ports ] }
- { role: get-geth-api-urls, tags: [ get-geth-api-urls, beacon-node ] }
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
- { role: infra-role-nimbus-light-client, tags: [light-client] }
tasks:
- include_role:
name: infra-role-beacon-node-linux
Expand Down
5 changes: 5 additions & 0 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@
- name: infra-role-nimbus-bench-eth1
src: [email protected]:status-im/infra-role-nimbus-bench-eth1.git
version: d94f021d3338282c17b7674289e4b876eff650ff

- name: infra-role-nimbus-light-client
src: [email protected]:status-im/infra-role-nimbus-light-client.git
version: 1d4291545c7ffb4a5b93f04195d32bd7cd052d90

0 comments on commit 48fa839

Please sign in to comment.