add support for beacon_node_era_dir_path var

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-09-12 14:15:46 +02:00
parent 99f41225b2
commit eb0cc3a4c1
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
3 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,7 @@ beacon_node_service_user_name: 'nimbus'
beacon_node_service_user_pass: '{{ ansible_date_time.epoch | password_hash("sha512") }}'
beacon_node_service_home: 'C:\Users\{{ beacon_node_service_user_name }}'
beacon_node_service_path: '{{ beacon_node_service_home }}\{{ beacon_node_service_name }}'
beacon_node_era_dir_path: '{{ beacon_node_data_path }}\era'
beacon_node_service_logs_path: '{{ beacon_node_service_path }}\logs'
beacon_node_service_bin_path: '{{ beacon_node_service_path }}\bin'
beacon_node_service_exe: '{{ beacon_node_service_bin_path }}\nimbus_beacon_node.exe'

View File

@ -1,10 +1,19 @@
---
# Necessary to be able to create folders inside.
- name: Temporarily enable inheritance on data dir
win_acl_inheritance:
path: '{{ beacon_node_data_path }}'
state: 'present'
- name: Create service folders
win_file:
path: '{{ item }}'
state: 'directory'
with_items:
- '{{ beacon_node_service_path }}'
- '{{ beacon_node_era_dir_path }}'
- '{{ beacon_node_secrets_path }}'
- '{{ beacon_node_validators_path }}'
- '{{ beacon_node_service_logs_path }}'
- '{{ beacon_node_service_bin_path }}'
- '{{ beacon_node_data_path }}'

View File

@ -17,6 +17,7 @@
--non-interactive
--network={{ beacon_node_network }}
--data-dir="{{ beacon_node_data_path }}"
--era-dir="{{ beacon_node_era_dir_path }}"
{% for url in beacon_node_web3_urls | mandatory %}
--web3-url="{{ url | mandatory }}"
{% endfor %}