mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-02-14 06:36:24 +00:00
nimbus.mainnet: deploy nimbus-era-files to metal hosts
https://github.com/status-im/infra-nimbus/issues/98 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
00cfcf569f
commit
3cc72b68e9
@ -6,8 +6,9 @@ beacon_node_network: 'mainnet'
|
||||
beacon_node_repo_branch: '{{ (node.branch == "libp2p") | ternary("nim-libp2p-auto-bump-unstable", node.branch) }}'
|
||||
# TODO Drop this once all nodes have an number.
|
||||
service_number: '{{ node.get("num", False) | ternary(("-%02d"|format(node.get("num", 0))), "") }}'
|
||||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}{{ service_number }}'
|
||||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch | mandatory }}{{ service_number }}'
|
||||
beacon_node_service_path: '/data/{{ beacon_node_service_name }}'
|
||||
beacon_node_data_folder: 'shared_{{ beacon_node_network }}_0'
|
||||
# Ports
|
||||
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
|
||||
beacon_node_listening_port: '{{ 9000 + port_offset }}'
|
||||
@ -37,6 +38,12 @@ nimbus_db_purge_timer_frequency: 'weekly'
|
||||
nimbus_db_purge_truster_node_api_url: 'http://localhost:{{ beacon_node_rest_port|int - 1 }}'
|
||||
nimbus_db_purge_trusted_node_sync_enabled: '{{ node.get("db_sync", false) }}'
|
||||
|
||||
# ERA files geneartion.
|
||||
# FIXME: Not pretty, since hardcoded, but the simplest way to do it right now.
|
||||
nimbus_era_files_node_service_path: '/data/beacon-node-{{ beacon_node_network }}-stable-01'
|
||||
nimbus_era_files_nclidb_path: '{{ nimbus_era_files_node_service_path }}/repo/build/ncli_db'
|
||||
nimbus_era_files_db_path: '{{ nimbus_era_files_node_service_path }}/data/{{ beacon_node_data_folder }}/db'
|
||||
|
||||
# Split by hostname for more central location
|
||||
nodes_layout:
|
||||
'stable-small-01.aws-eu-central-1a.nimbus.mainnet':
|
||||
|
@ -35,6 +35,7 @@
|
||||
roles:
|
||||
- { role: redirect-ports, tags: [ redirect-ports ] }
|
||||
- { role: get-geth-api-urls, tags: [ get-geth-api-urls ] }
|
||||
- { role: nimbus-era-files, tags: [ nimbus-era-file ] }
|
||||
tasks:
|
||||
- include_role: name=infra-role-beacon-node-linux
|
||||
tags: [ beacon-node, infra-role-beacon-node-linux ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user