This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathimport-validator-accounts.yaml
97 lines (80 loc) · 2.45 KB
/
import-validator-accounts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
- hosts: stereumnodes
vars_files:
- /etc/stereum/ethereum2.yaml
tasks:
- name: call stop-services role
include_role:
name: stop-services
when: setup == "lighthouse"
- name: Create lighthouse validator image
shell: docker commit stereum_validator_1 validator_image
become: yes
when: setup == "lighthouse"
- name: Extract Multiclient's wallet 'import-config'
include_role:
name: extract-wallet-multiclient
when: setup == "multiclient" and exported_config_path is defined
- name: Check - key files exists
include_role:
name: check-keys-exists
- name: Checking imported keys of teku
include_role:
name: check-imported-keys-teku
when: setup == "teku" and exported_config_path is not defined
- name: Copy validator keys to launchpad directory
include_role:
name: copy-validator-keys-to-launchpad
- block:
- name: import to lighthouse
include_role:
name: import-validator-keys-lighthouse
when: setup == "lighthouse"
ignore_errors: yes
- block:
- name: import to lodestar
include_role:
name: import-validator-keys-lodestar
when: setup == "lodestar"
ignore_errors: yes
- block:
- name: import to nimbus
include_role:
name: import-validator-keys-nimbus
when: setup == "nimbus"
ignore_errors: yes
- block:
- name: import to prysm
include_role:
name: import-validator-keys-prysm
when: setup == "prysm"
ignore_errors: yes
- block:
- name: import to teku
include_role:
name: import-validator-keys-teku
when: setup == "teku"
ignore_errors: yes
- block:
- name: import to multiclient
include_role:
name: import-validator-keys-multiclient
when: setup == "multiclient"
ignore_errors: yes
- name: call stop-services role
include_role:
name: stop-services
- name: call start-services role
include_role:
name: start-services
- name: Checking keys' password of teku
include_role:
name: check-keys-password-teku
when: setup == "teku"
- name: Remove exported-config directory
file:
path: "/tmp/exported-config"
state: absent
become: yes
when: validator_password is defined and exported_config_path is defined
# EOF