-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack.yaml
79 lines (70 loc) · 2.4 KB
/
stack.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
namespace: /bison
dot_validator:
defines: runnable
inherits: /polkadot/validator
# depend on vault for secret fetching
depends:
defines: depends
wait-for:
runnables:
- /bison/vault_pandora
timeout: 120
variables:
defines: variables
chain: polkadot
node-name: monk-overlord
validator_sk: <- act("bison/vault_pandora/get", "path", "validators/dot/validator_sk", "key", "key")
validator_sr25519_pk: <- act("bison/vault_pandora/get", "path", "validators/dot/validator_sr25519_pk", "key", "key")
validator_ed25519_pk: <- act("bison/vault_pandora/get", "path", "validators/dot/validator_ed25519_pk", "key", "key")
ksm_validator:
defines: runnable
inherits: /polkadot/validator
# depend on vault for secret fetching
depends:
defines: depends
wait-for:
runnables:
- /bison/vault_pandora
timeout: 120
variables:
defines: variables
chain: kusama
node-name: monk-overlord
validator_sk: <- act("bison/vault_pandora/get", "path", "validators/ksm/validator_sk", "key", "key")
validator_sr25519_pk: <- act("bison/vault_pandora/get", "path", "validators/ksm/validator_sr25519_pk", "key", "key")
validator_ed25519_pk: <- act("bison/vault_pandora/get", "path", "validators/ksm/validator_ed25519_pk", "key", "key")
dot_validator_local:
defines: runnable
inherits: ./dot_validator
ksm_validator_local:
defines: runnable
inherits: ./ksm_validator
variables:
wsrpc-port: 9945
p2p-port: 30334
prometheus-port: 9616
vault_pandora:
defines: runnable
inherits: ./vault
variables:
defines: variables
# sample keys, obviously do not use this in prod.
dot_validator_sk: 0x3a37407ee54935b75b723a303e301c2ca23c24625b37b1089fc5b27bc50431c3
dot_validator_sr25519_pk: 0x3acfd15c0ef5516a4eeeff48537e08a329c09a603dfa480086707ba9e4c7e628
dot_validator_ed25519_pk: 0x258295389473ef1b9f8d2ef9d556e5fde25c11e1fc45aaad36c41e2c611aa394
# use the same keys for DOT
ksm_validator_sk: <- `${dot_validator_sk}`
ksm_validator_sr25519_pk: <- `${dot_validator_sr25519_pk}`
ksm_validator_ed25519_pk: <- `${dot_validator_ed25519_pk}`
stack:
defines: process-group
runnable-list:
- /bison/vault_pandora
- /bison/dot_validator
- /bison/ksm_validator
stack-local:
defines: process-group
runnable-list:
- /bison/vault_pandora
- /bison/dot_validator_local
- /bison/ksm_validator_local