windows: configure running multiple beacon nodes

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-06-16 15:41:50 +02:00
parent ddc91ed233
commit 13b27db54d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 46 additions and 18 deletions

View File

@ -1,3 +1,10 @@
---
beacon_node_cont_tag: 'stable-windows'
beacon_node_service_user_pass: '{{lookup("passwordstore", "services/Nimbus/windows-pass")}}'
beacon_node_network: 'prater'
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ beacon_node_repo_branch }}'
beacon_node_repo_branch: '{{ item.branch }}'
# Offset using index from list of branches
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
beacon_node_listening_port: '{{ 9000 + port_offset }}'
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
beacon_node_rpc_port: '{{ 9900 + port_offset }}'

View File

@ -9,15 +9,17 @@
- local_action: command ./versioncheck.py
changed_when: false
- name: Configure build nodes
- name: Deploy beacon node build nodes
become: true
hosts:
- testing-large-01.aws-eu-central-1a.nimbus.pyrmont
roles:
- { role: swap, tags: swap }
- { role: beacon-node-builds, tags: beacon-node-builds }
- role: swap-file
tags: swap-file
- role: beacon-node-builds
tags: beacon-node-builds
- name: Configure network prater
- name: Deploy prater Linux beacon nodes
become: true
# To avoid clashing/duplicate validators.
any_errors_fatal: true
@ -26,12 +28,30 @@
- nimbus-prater-testing
- nimbus-prater-unstable
roles:
- { role: distribute-validators, tags: [ distribute-validators ] }
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- role: distribute-validators
tags: distribute-validators
- role: get-geth-web3-urls
tags: get-geth-web3-urls
- role: infra-role-beacon-node
tags: [ infra-role-beacon-node, beacon-node ]
- name: Configure network prater Windows host
- name: Deploy prater Windows beacon nodes
become: true
hosts: 'nimbus-prater-windows'
roles:
- { role: infra-role-beacon-node-windows, tags: [ infra-role-beacon-node-windows, beacon-node ] }
hosts:
- nimbus-prater-windows
tasks:
- include_role: name=infra-role-beacon-node-windows
tags: [ infra-role-beacon-node-windows, beacon-node ]
vars:
beacon_node_repo_branch: '{{ node.branch }}'
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
beacon_node_listening_port: '{{ 9000 + port_offset }}'
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
with_items:
- { branch: 'stable' }
- { branch: 'unstable' }
- { branch: 'testing' }
loop_control:
loop_var: node
index_var: port_offset

View File

@ -15,9 +15,10 @@
- testing-large-01.aws-eu-central-1a.nimbus.pyrmont
- testing-small-01.aws-eu-central-1a.nimbus.pyrmont
roles:
- { role: swap, tags: swap }
- { role: beacon-node-builds, tags: beacon-node-builds }
- role: swap-file
tags: swap-file
- role: beacon-node-builds
tags: beacon-node-builds
- name: Configure network pyrmont
become: true

View File

@ -16,12 +16,12 @@
- name: infra-role-bootstrap
src: git@github.com:status-im/infra-role-bootstrap.git
version: 0aca5b6927373c04b9713408e9d6b9284a906d75
version: 58149fee4be9fed7b22cc610430aedc5906531ac
scm: git
- name: infra-role-bootstrap-windows
src: git@github.com:status-im/infra-role-bootstrap.git
version: 9f82c62a4164041b9c87b9cb0807eb1657bf9277
version: 55c1d494f7722b67b2c2f07abfcfbecd74779d17
scm: git
- name: oauth-proxy
@ -71,7 +71,7 @@
- name: systemd-timer
src: git@github.com:status-im/infra-role-systemd-timer.git
version: 945920327a6c9cd0bfd752dd48ad28f167025660
version: 5eafd38e4374f56a3439232b72ec077d569e0f5c
scm: git
- name: swap-file