Ansible role for Erigon Eth1 client
Go to file
Jakub Sokołowski ab5db3a8ae
upgrade form 2.60.2 to 2.60.8
https://github.com/erigontech/erigon/releases/tag/2.60.8

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-10-15 13:14:19 +02:00
defaults upgrade form 2.60.2 to 2.60.8 2024-10-15 13:14:19 +02:00
handlers first working version running 2.30.0 2022-11-17 17:30:28 +01:00
meta meta: use full names of Ansible roles 2024-03-10 13:33:22 +01:00
tasks ansible: remove firewall.yml 2024-10-01 18:31:43 +02:00
templates docker: use docker_compose_v2 module 2024-07-06 10:19:53 +02:00
LICENSE add LICENSE file 2022-11-17 15:58:42 +01:00
README.md docker: support --p2p.allowed-ports flag 2023-10-02 18:33:19 +02:00

README.md

Description

This role configures a Erigon Docker container.

The image used is the official thorax/erigon.

Configuration

Some important settings are:

erigon_network_name: 'mainnet'
erigon_service_name: 'erigon-{{ erigon_network_name }}'
erigon_log_level: 'debug'

It is also quite important to enable the right APIs for the right hostnames:

erigon_rcp_api: 'eth,net,erigon,admin,engine'
erigon_rpc_extra_vhost: 'erigon.example.org'

One notable difference from other execution layer clients is use of multiple ports:

erigon_port: 30303
erigon_p2p_allowed_ports: [30303, 30304, 30305, 30306, 30307]

By default we create a Consul service definition:

erigon_consul_enabled: true
erigon_consul_extra_tags: ['my-cute-erigon']

For the rest see the defaults/main.yml config file.

Management

The container is created and managed with Docker Compose:

admin@erigon-01.aws-eu-central-1a.rocket.prod:/docker/erigon-rocketpool-mainnet % docker-compose ps
          Name                         Command               State                               Ports                            
----------------------------------------------------------------------------------------------------------------------------------
erigon-rocketpool-mainnet   /usr/local/bin/erigon --ch ...   Up      0.0.0.0:30303->30303/tcp, 0.0.0.0:30303->30303/udp,          
                                                                     42069/tcp, 42069/udp, 0.0.0.0:6060->6060/tcp, 8080/tcp,      
                                                                     0.0.0.0:8545->8545/tcp, 8546/tcp, 127.0.0.1:8551->8551/tcp,  
                                                                     9090/tcp