Jakub Sokołowski c8e3232dff
nimbus-era-files: use --network flag to fix errors
Changes to default runtime config have caused errors like this:
```
FAT Could not load head state, database corrupt? tid=3639597 file=blockchain_dag.nim:920 head=e7d4f3b7:4636671 tail=4d611d5b:0 genesis=4d611d5b:0
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-12 09:30:46 +02:00

26 lines
1.3 KiB
YAML

---
- name: Create ERA files directory
file:
path: '{{ nimbus_era_files_timer_path }}'
owner: '{{ nimbus_era_files_timer_user }}'
group: '{{ nimbus_era_files_timer_group }}'
state: 'directory'
- name: Create timer for ERA file updates
include_role: name=systemd-timer
vars:
systemd_timer_description: 'Update Nimbus beacon node ERA files'
systemd_timer_start_on_creation: false
systemd_timer_enabled: '{{ nimbus_era_files_timer_enabled }}'
systemd_timer_name: '{{ nimbus_era_files_timer_name }}'
systemd_timer_user: '{{ nimbus_era_files_timer_user }}'
systemd_timer_group: '{{ nimbus_era_files_timer_group }}'
systemd_timer_frequency: '{{ nimbus_era_files_timer_frequency }}'
systemd_timer_random_delay_sec: '{{ nimbus_era_files_timer_random_delay_sec }}'
systemd_timer_timeout_sec: '{{ nimbus_era_files_timer_timeout_sec }}'
systemd_timer_ionice_class: '{{ nimbus_era_files_timer_ionice_class }}'
systemd_timer_work_dir: '{{ nimbus_era_files_timer_path }}'
systemd_timer_script_path: '{{ nimbus_era_files_nclidb_path }}'
systemd_timer_script_args: >
--network={{ nimbus_era_files_network }} exportEra --db={{ nimbus_era_files_db_path }}