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:
Jakub Sokołowski 2021-10-04 12:07:32 +02:00
parent 81bd269610
commit 6c7e3384e5
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 37 additions and 3 deletions

View File

@ -2,8 +2,8 @@
beacon_node_network: 'mainnet' beacon_node_network: 'mainnet'
beacon_node_repo_branch: 'stable' beacon_node_repo_branch: 'stable'
# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged. # Mainnet validators run on a separate fleet.
beacon_node_netkey: '{{lookup("bitwarden", "nimbus/netkey", field=hostname)}}' beacon_node_dist_validators_enabled: false
# Bootnodes should subscribe to all subnets # Bootnodes should subscribe to all subnets
beacon_node_subscribe_all: true beacon_node_subscribe_all: true

View File

@ -12,6 +12,40 @@
- name: Configure network mainnet bootnodes - name: Configure network mainnet bootnodes
become: true become: true
hosts: 'nimbus-mainnet-small' 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: roles:
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] } - { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
- { role: infra-role-beacon-node-linux, tags: [ beacon-node ] } - { 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

View File

@ -16,7 +16,7 @@
- name: infra-role-bootstrap-linux - name: infra-role-bootstrap-linux
src: git@github.com:status-im/infra-role-bootstrap-linux.git src: git@github.com:status-im/infra-role-bootstrap-linux.git
version: 8a47c73754ea018bbad19992164d860f9c5c175f version: 1c3598d71f948763d327e6bb81a5f9a3cdf5c063
scm: git scm: git
- name: infra-role-bootstrap-windows - name: infra-role-bootstrap-windows