From 87d23f8fa13b99e1827a48c1905e3b2e92081db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 15 Jul 2021 20:15:58 +0200 Subject: [PATCH] deploy 3 beacon nodes on all Pyrmont metal hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/status-im/infra-nimbus/issues/59 Signed-off-by: Jakub SokoĊ‚owski --- ansible/pyrmont.yml | 28 +++++++++++++++++++++++++++- ansible/requirements.yml | 10 +++++----- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/ansible/pyrmont.yml b/ansible/pyrmont.yml index 2ed469e..3995724 100644 --- a/ansible/pyrmont.yml +++ b/ansible/pyrmont.yml @@ -24,7 +24,33 @@ become: true # To avoid clashing/duplicate validators. any_errors_fatal: true - hosts: 'nimbus.pyrmont' + hosts: + - nimbus-pyrmont-stable + - nimbus-pyrmont-testing + - nimbus-pyrmont-unstable + - nimbus-pyrmont-libp2p roles: - { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] } - { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] } + +- name: Deploy pyrmont Metal beacon nodes + become: true + hosts: + - nimbus-pyrmont-metal + tasks: + - include_role: name=infra-role-beacon-node-linux + tags: [ beacon-node, infra-role-beacon-node-linux ] + vars: + beacon_node_dist_validators_enabled: false + 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 diff --git a/ansible/requirements.yml b/ansible/requirements.yml index 960e5b6..201f35a 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -16,7 +16,7 @@ - name: infra-role-bootstrap src: git@github.com:status-im/infra-role-bootstrap.git - version: c1f535e4b2851f08b1013bd57ab42d0c1e31e3b2 + version: a72d839866700f543c3634a6a82bf0ac0fc44c0c scm: git - name: infra-role-bootstrap-windows @@ -41,22 +41,22 @@ - name: infra-role-beacon-node-linux src: git@github.com:status-im/infra-role-beacon-node-linux.git - version: 083a675b0f58fc8cd99dd4a7eca8d346349d4c78 + version: 09d0176c12a509f24a8537c7902b750c05efb755 scm: git - name: infra-role-beacon-node-windows src: git@github.com:status-im/infra-role-beacon-node-windows.git - version: a58849012bbaa91dace50533ba234fa1bb6a87a9 + version: cc3ad53c33bdfc26412c012c8926da38f68a4676 scm: git - name: infra-role-dist-validators src: git@github.com:status-im/infra-role-dist-validators.git - version: 871b8e99737174aaea0bb0073e174b8c68482e2e + version: 18b11237665db03b9f7ff9e0a6ec59afb95bc51f scm: git - name: infra-role-winsw src: git@github.com:status-im/infra-role-winsw.git - version: 97275ab7be23bd4041f110ffbd60c509d5e819f3 + version: e41415ba8bd63438e1f988421ef52e1078a310dd scm: git - name: kibana