drop pointless shared_ subfolder from data path
It was something compied from `nimbus-eth2` repo that has no purpose on server hosts, and makes Ansible rolles more confusing with extra variables. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
34d59ad6b2
commit
f4259bdfe7
|
@ -2,7 +2,6 @@
|
|||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ beacon_node_repo_branch }}'
|
||||
beacon_node_service_path: '/data/{{ beacon_node_service_name }}'
|
||||
beacon_node_data_path: '{{ beacon_node_service_path }}/data'
|
||||
beacon_node_data_folder: 'shared_{{ beacon_node_network }}_0'
|
||||
beacon_node_repo_path: '{{ beacon_node_service_path }}/repo'
|
||||
beacon_node_logs_link: '{{ beacon_node_service_path }}/logs'
|
||||
beacon_node_netkey_path: '{{ beacon_node_data_path }}/netkey'
|
||||
|
@ -78,7 +77,7 @@ beacon_node_threads: 1
|
|||
# Automatically distribute validators
|
||||
beacon_node_dist_validators_enabled: false
|
||||
beacon_node_dist_validators_name: '{{ beacon_node_network }}_deposits'
|
||||
beacon_node_dist_validators_data_path: '{{ beacon_node_data_path }}/{{ beacon_node_data_folder }}'
|
||||
beacon_node_dist_validators_path: '{{ beacon_node_data_path }}'
|
||||
#beacon_node_dist_validators_name: ~
|
||||
#beacon_node_dist_validators_start: ~
|
||||
#beacon_node_dist_validators_end: ~
|
||||
|
|
|
@ -1,11 +1,19 @@
|
|||
---
|
||||
- name: Create service directory
|
||||
file:
|
||||
path: '{{ beacon_node_service_path }}'
|
||||
owner: '{{ beacon_node_user }}'
|
||||
group: '{{ beacon_node_group }}'
|
||||
state: directory
|
||||
mode: 0770
|
||||
|
||||
- name: Create data directory
|
||||
file:
|
||||
path: '{{ beacon_node_data_path }}'
|
||||
owner: '{{ beacon_node_user }}'
|
||||
group: '{{ beacon_node_group }}'
|
||||
state: directory
|
||||
mode: 0770
|
||||
mode: 0700
|
||||
|
||||
- name: Create netkey file (optional)
|
||||
copy:
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
dist_validators_name: '{{ beacon_node_dist_validators_name }}'
|
||||
dist_validators_start: '{{ beacon_node_dist_validators_start | mandatory }}'
|
||||
dist_validators_end: '{{ beacon_node_dist_validators_end | mandatory }}'
|
||||
dist_validators_data_path: '{{ beacon_node_dist_validators_data_path | mandatory }}'
|
||||
dist_validators_path: '{{ beacon_node_dist_validators_path | mandatory }}'
|
||||
dist_validators_user: '{{ beacon_node_user }}'
|
||||
|
||||
- when: dist_validators_deployed is defined
|
||||
|
|
|
@ -15,7 +15,7 @@ Restart=on-failure
|
|||
RestartPreventExitStatus=1031
|
||||
ExecStart={{ beacon_node_repo_path }}/build/nimbus_beacon_node \
|
||||
--network={{ beacon_node_network }} \
|
||||
--data-dir='{{ beacon_node_data_path }}/{{ beacon_node_data_folder }}' \
|
||||
--data-dir={{ beacon_node_data_path }} \
|
||||
{% if beacon_node_validators_dir != "" %}
|
||||
--validators-dir='{{ beacon_node_validators_dir }}' \
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue