2019-04-26 09:54:14 +00:00
|
|
|
---
|
2021-03-25 11:16:43 +00:00
|
|
|
geth_service_name: 'geth'
|
|
|
|
geth_service_path: '/docker/{{ geth_service_name }}'
|
|
|
|
geth_compose_path: '{{ geth_service_path }}/docker-compose.yml'
|
|
|
|
|
2019-04-26 13:24:37 +00:00
|
|
|
# Security, json is optional
|
2020-03-17 00:08:23 +00:00
|
|
|
#geth_account_addr: ~
|
|
|
|
#geth_account_pass: ~
|
|
|
|
#geth_account_json: ~
|
2019-04-26 10:33:57 +00:00
|
|
|
|
2021-03-25 11:16:43 +00:00
|
|
|
# account
|
|
|
|
geth_account_json_file: '{{ geth_cont_vol }}/keys/account.json'
|
|
|
|
geth_account_pass_file: '{{ geth_cont_vol }}/keys/account.pass'
|
|
|
|
geth_account_addr_file: '{{ geth_cont_vol }}/keys/account.addr'
|
|
|
|
|
2019-04-26 10:33:57 +00:00
|
|
|
# Container config
|
2022-03-07 09:30:21 +00:00
|
|
|
geth_cont_tag: 'v1.10.16'
|
2019-07-11 16:48:53 +00:00
|
|
|
geth_cont_image: 'ethereum/client-go:{{ geth_cont_tag }}'
|
2021-03-25 11:16:43 +00:00
|
|
|
geth_cont_name: '{{ geth_service_name }}-node'
|
|
|
|
geth_cont_vol: '{{ geth_service_path }}/node'
|
2019-04-26 09:54:14 +00:00
|
|
|
|
2021-03-25 11:16:43 +00:00
|
|
|
geth_enode_file: '{{ geth_cont_vol }}/keys/enode'
|
2019-08-09 19:23:34 +00:00
|
|
|
geth_sync_check_script: '/usr/local/bin/check_sync_{{ geth_cont_name | replace("-", "_") }}.sh'
|
2021-03-25 11:16:43 +00:00
|
|
|
|
|
|
|
# Enable metrics
|
|
|
|
geth_metrics_enabled: true
|
|
|
|
geth_metrics_port: 6060
|
|
|
|
|
2019-04-26 09:54:14 +00:00
|
|
|
# RPC port of administration
|
2020-06-03 10:11:36 +00:00
|
|
|
geth_rpc_enabled: true
|
2019-04-26 09:54:14 +00:00
|
|
|
geth_rpc_addr: '127.0.0.1'
|
|
|
|
geth_rpc_port: 8545
|
2020-12-04 16:46:05 +00:00
|
|
|
# Available: admin, clique, debug, eth, les, miner, net, personal, rpc, txpool, web3
|
2020-06-03 10:11:36 +00:00
|
|
|
geth_rcp_api: 'eth,net,web3,personal,admin'
|
2019-04-26 12:27:49 +00:00
|
|
|
# useful for linking containers
|
2021-03-25 11:53:33 +00:00
|
|
|
geth_rpc_extra_vhost: geth
|
|
|
|
geth_rpc_vhosts:
|
2020-12-04 16:59:23 +00:00
|
|
|
- 'localhost'
|
2021-03-25 11:53:33 +00:00
|
|
|
- '{{ geth_cont_name }}'
|
|
|
|
- '{{ geth_rpc_extra_vhost }}'
|
2019-04-26 11:07:57 +00:00
|
|
|
- '{{ hostname }}'
|
2021-05-19 21:02:25 +00:00
|
|
|
- '{{ hostname }}.wg'
|
|
|
|
- '{{ ansible_local.wireguard.vpn_ip }}'
|
2021-05-11 10:17:34 +00:00
|
|
|
# Wrapper for easier RPC usage
|
2021-06-07 16:44:02 +00:00
|
|
|
geth_rpc_wrapper: '{{ geth_service_path }}/rpc.sh'
|
2021-03-25 11:53:33 +00:00
|
|
|
# Web Sockets API
|
|
|
|
geth_websocket_enabled: true
|
2021-08-25 13:20:41 +00:00
|
|
|
geth_websocket_addr: '127.0.0.1'
|
2021-03-25 11:53:33 +00:00
|
|
|
geth_websocket_port: '{{ geth_rpc_port + 1 | int }}'
|
|
|
|
geth_websocket_api: 'eth,net,web3,personal,admin'
|
|
|
|
geth_websocket_origins: 'localhost'
|
2019-04-26 10:42:54 +00:00
|
|
|
|
2021-04-29 11:13:13 +00:00
|
|
|
# Sync mode: full, fast, light, snap
|
2019-04-26 09:54:14 +00:00
|
|
|
geth_sync_mode: 'light'
|
2019-05-07 08:53:21 +00:00
|
|
|
# Maximum number of untrusted peers that can connect
|
2019-05-07 12:41:27 +00:00
|
|
|
geth_max_peers: 50
|
|
|
|
# Maximum pending connection attempts
|
|
|
|
geth_max_pend_peers: 30
|
2019-04-26 10:42:54 +00:00
|
|
|
# Maximum percentage of time allowed for serving LES requests (0-90)
|
|
|
|
geth_light_serv: 90
|
2019-04-26 09:54:14 +00:00
|
|
|
# Peer discovery protocol
|
2021-03-24 11:12:49 +00:00
|
|
|
geth_discovery_enabled: true
|
2019-04-26 09:54:14 +00:00
|
|
|
geth_v5disc_enabled: true
|
2019-05-07 12:29:11 +00:00
|
|
|
# List of trusted peers to connect to
|
|
|
|
geth_trusted_peers: []
|
2021-03-25 11:16:43 +00:00
|
|
|
geth_trusted_peers_file: '{{ geth_cont_vol }}/data/trusted-nodes.json'
|
2021-04-29 10:45:44 +00:00
|
|
|
# Any additional flags you want to provide
|
|
|
|
geth_extra_flags: []
|
2019-04-26 10:42:54 +00:00
|
|
|
|
2021-04-29 11:13:13 +00:00
|
|
|
# Some custom testnets require a custom init
|
|
|
|
geth_init_enabled: false
|
|
|
|
geth_init_genesis_path: '{{ geth_cont_vol }}/genesis.json'
|
|
|
|
#geth_init_url: ~
|
|
|
|
#geth_init_sha256: ~
|
|
|
|
|
2021-02-06 19:32:08 +00:00
|
|
|
# Custom bootnodes
|
|
|
|
geth_bootnodes: []
|
|
|
|
|
2019-05-07 12:41:27 +00:00
|
|
|
# Mining settings
|
|
|
|
geth_miner_enabled: false
|
|
|
|
geth_miner_threads: '{{ ansible_processor_vcpus }}'
|
|
|
|
geth_miner_account: '{{ geth_account_addr }}'
|
|
|
|
|
|
|
|
# Whisper protocol
|
|
|
|
geth_whisper_enabled: false
|
|
|
|
geth_whisper_pow: 0.2
|
|
|
|
|
2019-04-26 09:59:55 +00:00
|
|
|
# logging
|
|
|
|
geth_lov_level_names:
|
|
|
|
silent: 0
|
|
|
|
error: 1
|
|
|
|
warn: 2
|
|
|
|
info: 3
|
|
|
|
debug: 4
|
|
|
|
detail: 5
|
|
|
|
geth_log_level_name: 'info'
|
|
|
|
geth_log_level_id: '{{ geth_lov_level_names[geth_log_level_name | lower] | mandatory }}'
|
2020-06-08 13:50:18 +00:00
|
|
|
|
2020-10-21 10:42:12 +00:00
|
|
|
# Available: mainnet, goerli, rinkeby, yolov1, ropsten
|
2020-06-08 13:50:18 +00:00
|
|
|
geth_network_name: 'mainnet'
|
2019-04-26 10:42:54 +00:00
|
|
|
|
2019-04-26 09:54:14 +00:00
|
|
|
# Port to listen on
|
|
|
|
geth_port: 30303
|
|
|
|
# Address to advertise
|
|
|
|
geth_public_addr: '{{ ansible_host }}'
|
|
|
|
|
|
|
|
# Consul config
|
2019-04-26 13:32:25 +00:00
|
|
|
geth_consul_enabled: true
|
2019-04-26 10:04:06 +00:00
|
|
|
geth_consul_default_tags:
|
2019-04-26 09:54:14 +00:00
|
|
|
- geth
|
|
|
|
- '{{ env }}.{{ stage }}'
|
|
|
|
- '{{ geth_network_name }}'
|
2019-04-26 10:04:06 +00:00
|
|
|
geth_consul_extra_tags: []
|
|
|
|
geth_consul_tags: '{{ geth_consul_default_tags + geth_consul_extra_tags }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
|
2020-11-24 13:46:50 +00:00
|
|
|
# Geth cache size. WARNING: Values higher than 1GB cause issues.
|
|
|
|
geth_cache_size: ~
|
2020-03-16 17:08:18 +00:00
|
|
|
# Container memory limits
|
|
|
|
geth_cont_mem_ratio: 0.6
|
|
|
|
geth_cont_mem_limit: '{{ (ansible_memtotal_mb * geth_cont_mem_ratio|float) | int }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
|
2021-03-25 11:16:43 +00:00
|
|
|
# general container management
|
|
|
|
compose_recreate: 'smart'
|
|
|
|
compose_state: 'present'
|
|
|
|
compose_restart: false
|