Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/status-im/infra-role-erigon

Ansible role for Erigon Eth1 client
https://github.com/status-im/infra-role-erigon

ansible-role eth1 infra

Last synced: about 2 months ago
JSON representation

Ansible role for Erigon Eth1 client

Awesome Lists containing this project

README

        

# Description

This role configures a [Erigon](https://github.com/ledgerwatch/erigon) Docker container.

The image used is the official [thorax/erigon](https://hub.docker.com/r/thorax/erigon).

# Configuration

Some important settings are:
```yaml
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:
```yaml
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:
```yaml
erigon_port: 30303
erigon_p2p_allowed_ports: [30303, 30304, 30305, 30306, 30307]
```
By default we create a [Consul service definition](https://www.consul.io/docs/agent/services.html):
```yaml
erigon_consul_enabled: true
erigon_consul_extra_tags: ['my-cute-erigon']
```
For the rest see the [`defaults/main.yml`](./defaults/main.yml) config file.

# Management

The container is created and managed with [Docker Compose](https://docs.docker.com/engine/reference/commandline/compose/):
```
[email protected]:/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
```