mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-03-01 05:40:27 +00:00
nimbus.mainnet: deploy 6 nodes on new Hetzner hosts
https://github.com/status-im/infra-nimbus/issues/66 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
81bd269610
commit
6c7e3384e5
@ -2,8 +2,8 @@
|
||||
beacon_node_network: 'mainnet'
|
||||
beacon_node_repo_branch: 'stable'
|
||||
|
||||
# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged.
|
||||
beacon_node_netkey: '{{lookup("bitwarden", "nimbus/netkey", field=hostname)}}'
|
||||
# Mainnet validators run on a separate fleet.
|
||||
beacon_node_dist_validators_enabled: false
|
||||
|
||||
# Bootnodes should subscribe to all subnets
|
||||
beacon_node_subscribe_all: true
|
||||
|
@ -12,6 +12,40 @@
|
||||
- name: Configure network mainnet bootnodes
|
||||
become: true
|
||||
hosts: 'nimbus-mainnet-small'
|
||||
vars:
|
||||
# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged.
|
||||
beacon_node_netkey: '{{lookup("bitwarden", "nimbus/netkey", field=hostname)}}'
|
||||
roles:
|
||||
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
|
||||
- { role: infra-role-beacon-node-linux, tags: [ beacon-node ] }
|
||||
|
||||
- name: Deploy mainnet linux beacon nodes
|
||||
become: true
|
||||
hosts: nimbus-mainnet-metal
|
||||
roles:
|
||||
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
|
||||
tasks:
|
||||
- include_role: name=infra-role-beacon-node-linux
|
||||
tags: beacon-node
|
||||
vars:
|
||||
# TEMPORARY switch for Mainnet Altair transition
|
||||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}-{{ "%02d"|format(node.idx) }}'
|
||||
beacon_node_repo_branch: 'unstable'
|
||||
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
|
||||
beacon_node_build_frequency: '{{ node.build_frequency }}'
|
||||
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
|
||||
beacon_node_listening_port: '{{ 9000 + port_offset }}'
|
||||
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
|
||||
beacon_node_rest_port: '{{ 9300 + port_offset }}'
|
||||
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
|
||||
beacon_node_rpc_enabled: true
|
||||
with_items:
|
||||
- { branch: 'stable', idx: 1, build_frequency: '*-*-* 12:00:00' }
|
||||
- { branch: 'stable', idx: 2, build_frequency: '*-*-* 13:00:00' }
|
||||
- { branch: 'testing', idx: 1, build_frequency: '*-*-* 14:00:00' }
|
||||
- { branch: 'testing', idx: 2, build_frequency: '*-*-* 15:00:00' }
|
||||
- { branch: 'unstable', idx: 1, build_frequency: '*-*-* 16:00:00' }
|
||||
- { branch: 'unstable', idx: 2, build_frequency: '*-*-* 17:00:00' }
|
||||
loop_control:
|
||||
loop_var: node
|
||||
index_var: port_offset
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
- name: infra-role-bootstrap-linux
|
||||
src: git@github.com:status-im/infra-role-bootstrap-linux.git
|
||||
version: 8a47c73754ea018bbad19992164d860f9c5c175f
|
||||
version: 1c3598d71f948763d327e6bb81a5f9a3cdf5c063
|
||||
scm: git
|
||||
|
||||
- name: infra-role-bootstrap-windows
|
||||
|
Loading…
x
Reference in New Issue
Block a user