Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/status-im/infra-role-erigon
- Owner: status-im
- License: mit
- Created: 2022-01-28T12:52:34.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T06:23:40.000Z (4 months ago)
- Last Synced: 2024-09-17T08:58:50.243Z (4 months ago)
- Topics: ansible-role, eth1, infra
- Language: Jinja
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```