distribute-validators: fix order of copied validators and secrets
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
ffa65e00e0
commit
64b7736d85
|
@ -43,7 +43,7 @@
|
|||
beacon_node_cont_tag: 'toledo'
|
||||
dist_validators_layout:
|
||||
"toledo-01.aws-eu-central-1a.nimbus.test": { start: 0, end: 1024 }
|
||||
"toledo-02.aws-eu-central-1a.nimbus.test": { start: 1024, end: 2047 }
|
||||
"toledo-02.aws-eu-central-1a.nimbus.test": { start: 1024, end: 2048 }
|
||||
roles:
|
||||
- { role: distribute-validators, tags: [ distribute-validators ] }
|
||||
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
|
||||
|
|
|
@ -6,8 +6,8 @@ dist_validators_repo_path: '/home/{{ dist_validators_repo_user }}/distribute-val
|
|||
|
||||
dist_validators_data_path: ~
|
||||
dist_validators_name: ~
|
||||
dist_validators_layout:
|
||||
# - { hostname: 'node-01', start: 0, end: 1023 }
|
||||
# - { hostname: 'node-01', start: 1024, end: 2047 }
|
||||
#
|
||||
dist_validators_layout: {}
|
||||
# 'node-01': { start: 0, end: 1023 }
|
||||
# 'node-01': { start: 1024, end: 2047 }
|
||||
|
||||
dist_validators_range: '{{ dist_validators_layout[hostname] }}'
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
|
||||
- name: Extract file paths
|
||||
set_fact:
|
||||
found_validators: '{{ found_validators_raw.files | map(attribute="path") | list }}'
|
||||
found_secrets: '{{ found_secrets_raw.files | map(attribute="path") | list }}'
|
||||
found_validators: '{{ found_validators_raw.files | map(attribute="path") | list | sort }}'
|
||||
found_secrets: '{{ found_secrets_raw.files | map(attribute="path") | list | sort }}'
|
||||
|
||||
- name: Verify number of validators and secrets matches
|
||||
assert:
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
- name: Copy over validators
|
||||
command: |
|
||||
rsync -ru \
|
||||
rsync -ru --delete --exclude="slashing_protection.sqlite3*" \
|
||||
{{ found_validators[dist_validators_range["start"]:dist_validators_range["end"]] | join(" ") }} \
|
||||
'{{ dist_validators_data_path }}/validators/'
|
||||
|
||||
|
|
Loading…
Reference in New Issue