add dist_validators_purge_enabled option

Allows for purging all existing validators from node.
Necessary for setup of validator clients.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-10-28 10:10:20 +02:00
parent 281fa659e6
commit 95a5de787a
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
3 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,9 @@
#dist_validators_val_path: '/docker/node-01/data/validators' #dist_validators_val_path: '/docker/node-01/data/validators'
#dist_validators_user_pass: ~ #dist_validators_user_pass: ~
# Disable to not allow removal of validators.
dist_validators_purge_enabled: true
dist_validators_user: 'nimbus' dist_validators_user: 'nimbus'
# Script log level # Script log level

View File

@ -19,6 +19,7 @@
--start={{ dist_validators_start | mandatory }} --start={{ dist_validators_start | mandatory }}
--end={{ dist_validators_end | mandatory }} --end={{ dist_validators_end | mandatory }}
--log-level={{ dist_validators_log_level }} --log-level={{ dist_validators_log_level }}
{% if dist_validators_purge_enabled %}--purge{% endif %}
--print-count --print-count
- name: Extract number of deployed validators - name: Extract number of deployed validators

View File

@ -21,6 +21,7 @@
--start={{ dist_validators_start | mandatory }} \ --start={{ dist_validators_start | mandatory }} \
--end={{ dist_validators_end | mandatory }} \ --end={{ dist_validators_end | mandatory }} \
--log-level={{ dist_validators_log_level }} \ --log-level={{ dist_validators_log_level }} \
{% if dist_validators_purge_enabled %}--purge \{% endif %}
--print-count --print-count
- name: Extract number of deployed validators - name: Extract number of deployed validators