2019-04-26 09:54:14 +00:00
|
|
|
---
|
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
|
|
|
|
2019-05-28 12:30:44 +00:00
|
|
|
# Geth miner extra data
|
|
|
|
geth_extra_data: '{{ hostname }}'
|
|
|
|
|
2019-04-26 10:33:57 +00:00
|
|
|
# Container config
|
2020-10-20 13:39:28 +00:00
|
|
|
geth_cont_tag: 'v1.9.23'
|
2019-07-11 16:48:53 +00:00
|
|
|
geth_cont_image: 'ethereum/client-go:{{ geth_cont_tag }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
geth_cont_name: 'geth'
|
|
|
|
|
|
|
|
geth_cont_vol: '/docker/{{ geth_cont_name }}'
|
|
|
|
geth_data_path: '{{ geth_cont_vol }}/data'
|
|
|
|
geth_keys_path: '{{ geth_cont_vol }}/keys'
|
2019-04-26 13:24:37 +00:00
|
|
|
# account
|
|
|
|
geth_account_json_file: '{{ geth_keys_path }}/account.json'
|
|
|
|
geth_account_pass_file: '{{ geth_keys_path }}/account.pass'
|
|
|
|
geth_account_addr_file: '{{ geth_keys_path }}/account.addr'
|
|
|
|
|
2019-04-26 09:54:14 +00:00
|
|
|
geth_enode_file: '{{ geth_keys_path }}/enode'
|
2019-08-09 19:23:34 +00:00
|
|
|
geth_sync_check_script: '/usr/local/bin/check_sync_{{ geth_cont_name | replace("-", "_") }}.sh'
|
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-06-03 10:11:36 +00:00
|
|
|
geth_rcp_api: 'eth,net,web3,personal,admin'
|
2019-05-10 14:23:49 +00:00
|
|
|
# Alternative IPC socket
|
|
|
|
geth_ipc_path: '/data/geth.ipc'
|
2019-04-26 12:27:49 +00:00
|
|
|
# useful for linking containers
|
|
|
|
geth_extra_alias: geth
|
2019-04-26 11:07:57 +00:00
|
|
|
geth_aliases:
|
|
|
|
- localhost
|
2019-04-26 12:27:49 +00:00
|
|
|
- '{{ geth_extra_alias }}'
|
2019-04-26 11:07:57 +00:00
|
|
|
- '{{ hostname }}'
|
|
|
|
- '{{ hostname }}.tinc'
|
2019-04-26 10:42:54 +00:00
|
|
|
|
2019-04-26 09:54:14 +00:00
|
|
|
# Sync mode: full, fast, light
|
|
|
|
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
|
|
|
|
geth_v5disc_enabled: true
|
2019-05-07 12:29:11 +00:00
|
|
|
# List of trusted peers to connect to
|
|
|
|
geth_trusted_peers: []
|
|
|
|
geth_trusted_peers_file: '{{ geth_data_path }}/trusted-nodes.json'
|
2019-04-26 10:42:54 +00:00
|
|
|
|
2019-05-14 17:28:57 +00:00
|
|
|
# Enable metrics
|
|
|
|
geth_metrics_enabled: true
|
|
|
|
|
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-05-06 09:36:45 +00:00
|
|
|
geth_consul_address: '{{ ansible_host }}'
|
2019-05-06 09:41:21 +00:00
|
|
|
geth_consul_rpc_address: '{{ ansible_local.tinc.vpn_ip }}'
|
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 }}'
|
|
|
|
geth_cont_swap_limit: '{{ (geth_cont_mem_limit|int) + (ansible_swaptotal_mb * geth_cont_mem_ratio|float) | int }}'
|
2019-04-26 09:54:14 +00:00
|
|
|
|
|
|
|
# generic container beaviour
|
|
|
|
cont_state: started
|
|
|
|
cont_restart: false
|
|
|
|
cont_recreate: false
|
2019-08-09 18:41:42 +00:00
|
|
|
cont_restart_policy: always
|