diff --git a/ansible/group_vars/nimbus.mainnet.yml b/ansible/group_vars/nimbus.mainnet.yml index a225af2..05ba46d 100644 --- a/ansible/group_vars/nimbus.mainnet.yml +++ b/ansible/group_vars/nimbus.mainnet.yml @@ -6,6 +6,31 @@ bootstrap__extra_volume_bind_path: null # SWAP swap_file_size_mb: 2048 +# Go-Ethereum +geth_service_name: 'geth-{{ geth_network_name }}' +geth_service_path: '/docker/{{ geth_service_name }}' +geth_network_name: 'mainnet' +geth_cont_name: '{{ geth_service_name }}-node' +geth_cont_vol: '{{ geth_service_path }}/node' +geth_sync_mode: 'snap' +geth_log_level_name: 'info' +geth_account_pass: '{{lookup("bitwarden", "nimbus/geth", field="password")}}' +geth_authrpc_jwtsecret: '{{lookup("bitwarden", "nimbus/jwt-token")}}' +# Memory settingsĀ¬ +geth_cont_mem_ratio: 0.15 +geth_cache_size: '{{ (ansible_memtotal_mb * 0.05|float) | int }}' +# Ports +geth_port: 30303 +geth_rpc_addr: '0.0.0.0' +geth_rpc_port: 8545 +geth_authrpc_addr: '127.0.0.1' +geth_authrpc_port: 8551 +# Geth metricsĀ¬ +geth_expo_service_name: '{{ geth_service_name }}' +geth_expo_source_cont_name: '{{ geth_cont_name }}' +geth_expo_source_data_path: '{{ geth_cont_vol }}/data' +geth_expo_cont_port: 9400 + # Nimbus Beacon Node beacon_node_network: 'mainnet' # TODO This is to avoid too long service names. diff --git a/ansible/mainnet.yml b/ansible/mainnet.yml index cc66d22..c8fc57a 100644 --- a/ansible/mainnet.yml +++ b/ansible/mainnet.yml @@ -34,6 +34,8 @@ hosts: nimbus-mainnet-metal roles: - { role: redirect-ports, tags: [ redirect-ports ] } + - { role: infra-role-geth, tags: [ infra-role-geth ] } + - { role: infra-role-geth-exporter, tags: [ infra-role-geth-exporter ] } - { role: get-geth-api-urls, tags: [ get-geth-api-urls ] } - { role: nimbus-era-files, tags: [ nimbus-era-file ] } tasks: