move variables to individual group_vars files

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-11-20 15:34:09 +01:00
parent 1f39b846ad
commit 9ce7995256
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 34 additions and 45 deletions

View File

@ -0,0 +1,11 @@
---
beacon_node_network: 'pyrmont'
beacon_node_cont_tag: 'devel'
beacon_node_web3_url: 'wss://goerli.infura.io/ws/v3/922cc3c4badf4789b68d895267530a4a'
dist_validators_layout:
"devel-large-01.aws-eu-central-1a.nimbus.pyrmont": { start: 10000, end: 12000 } # 2000 each
"devel-large-02.aws-eu-central-1a.nimbus.pyrmont": { start: 12000, end: 14000 }
"devel-small-01.aws-eu-central-1a.nimbus.pyrmont": { start: 14000, end: 15000 } # 1000 each
"devel-small-02.aws-eu-central-1a.nimbus.pyrmont": { start: 15000, end: 16000 }
"devel-small-03.aws-eu-central-1a.nimbus.pyrmont": { start: 16000, end: 17000 }
"devel-small-04.aws-eu-central-1a.nimbus.pyrmont": { start: 17000, end: 18000 }

View File

@ -0,0 +1,7 @@
---
beacon_node_network: 'pyrmont'
beacon_node_cont_tag: 'libp2p'
beacon_node_web3_url: 'wss://goerli.infura.io/ws/v3/01cde3e0c47a47ff8dcdc52259b3a71c'
dist_validators_layout:
"libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont": { start: 18000, end: 19000 } # 1000 each
"libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont": { start: 19000, end: 20000 }

View File

@ -0,0 +1,11 @@
---
beacon_node_network: 'pyrmont'
beacon_node_cont_tag: 'master'
beacon_node_web3_url: 'wss://goerli.infura.io/ws/v3/675db4626923473591cf6418e4dae175'
dist_validators_layout:
"master-large-01.aws-eu-central-1a.nimbus.pyrmont": { start: 0, end: 2500 } # 2500 each
"master-large-02.aws-eu-central-1a.nimbus.pyrmont": { start: 2500, end: 5000 }
"master-small-01.aws-eu-central-1a.nimbus.pyrmont": { start: 5000, end: 6250 } # 1250 each
"master-small-02.aws-eu-central-1a.nimbus.pyrmont": { start: 6250, end: 7500 }
"master-small-03.aws-eu-central-1a.nimbus.pyrmont": { start: 7500, end: 8750 }
"master-small-04.aws-eu-central-1a.nimbus.pyrmont": { start: 8750, end: 10000 }

View File

@ -1,22 +0,0 @@
---
beacon_node_network: 'pyrmont'
# Distribution of validators and their keys
dist_validators_layout:
# master branch
"master-large-01.aws-eu-central-1a.nimbus.pyrmont": { start: 0, end: 2500 } # 2500 each
"master-large-02.aws-eu-central-1a.nimbus.pyrmont": { start: 2500, end: 5000 }
"master-small-01.aws-eu-central-1a.nimbus.pyrmont": { start: 5000, end: 6250 } # 1250 each
"master-small-02.aws-eu-central-1a.nimbus.pyrmont": { start: 6250, end: 7500 }
"master-small-03.aws-eu-central-1a.nimbus.pyrmont": { start: 7500, end: 8750 }
"master-small-04.aws-eu-central-1a.nimbus.pyrmont": { start: 8750, end: 10000 }
# devel branch
"devel-large-01.aws-eu-central-1a.nimbus.pyrmont": { start: 10000, end: 12000 } # 2000 each
"devel-large-02.aws-eu-central-1a.nimbus.pyrmont": { start: 12000, end: 14000 }
"devel-small-01.aws-eu-central-1a.nimbus.pyrmont": { start: 14000, end: 15000 } # 1000 each
"devel-small-02.aws-eu-central-1a.nimbus.pyrmont": { start: 15000, end: 16000 }
"devel-small-03.aws-eu-central-1a.nimbus.pyrmont": { start: 16000, end: 17000 }
"devel-small-04.aws-eu-central-1a.nimbus.pyrmont": { start: 17000, end: 18000 }
# libp2p branch
"libp2p-small-01.aws-eu-central-1a.nimbus.pyrmont": { start: 18000, end: 19000 } # 1000 each
"libp2p-small-02.aws-eu-central-1a.nimbus.pyrmont": { start: 19000, end: 20000 }

View File

@ -7,29 +7,11 @@
that: 'ansible_version.full is version_compare("2.8", ">=")'
msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
- name: Configure network pyrmont using master
hosts: nimbus-pyrmont-master
vars:
beacon_node_cont_tag: 'master'
beacon_node_web3_url: 'wss://goerli.infura.io/ws/v3/675db4626923473591cf6418e4dae175'
roles:
- { role: distribute-validators, tags: [ distribute-validators ] }
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- name: Configure network pyrmont using devel
hosts: nimbus-pyrmont-devel
vars:
beacon_node_cont_tag: 'devel'
beacon_node_web3_url: 'wss://goerli.infura.io/ws/v3/922cc3c4badf4789b68d895267530a4a'
roles:
- { role: distribute-validators, tags: [ distribute-validators ] }
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- name: Configure network pyrmont using libp2p
hosts: nimbus-pyrmont-libp2p
vars:
beacon_node_cont_tag: 'libp2p'
beacon_node_web3_url: 'wss://goerli.infura.io/ws/v3/01cde3e0c47a47ff8dcdc52259b3a71c'
- name: Configure network pyrmont
hosts:
- nimbus-pyrmont-master
- nimbus-pyrmont-devel
- nimbus-pyrmont-libp2p
roles:
- { role: distribute-validators, tags: [ distribute-validators ] }
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }