From 30c13db7c898bbf04d74bf381bf4475b577e3468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 18 Jun 2024 11:43:08 +0200 Subject: [PATCH] mainnet: use public_api flag to determin remapped port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ansible/host_vars/linux-01.ih-eu-mda1.nimbus.mainnet.yml | 6 +++--- ansible/host_vars/linux-02.ih-eu-mda1.nimbus.mainnet.yml | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ansible/host_vars/linux-01.ih-eu-mda1.nimbus.mainnet.yml b/ansible/host_vars/linux-01.ih-eu-mda1.nimbus.mainnet.yml index d78ea07..c4104b0 100644 --- a/ansible/host_vars/linux-01.ih-eu-mda1.nimbus.mainnet.yml +++ b/ansible/host_vars/linux-01.ih-eu-mda1.nimbus.mainnet.yml @@ -3,13 +3,13 @@ beacon_node_rest_address: '0.0.0.0' # Extract dynamically port form layout. -test_api_beacon_node_branch: 'unstable' test_api_beacon_node_rest_index: |- {{ nodes_layout[hostname] - | ansible.utils.index_of(test='eq', key='branch', value=test_api_beacon_node_branch) - | first }} + | ansible.utils.index_of(test='eq', key='public_api', value=True) }} test_api_beacon_node_rest_port: |- {{ beacon_node_rest_port_base + test_api_beacon_node_rest_index|int }} +test_api_beacon_node_branch: |- + {{ nodes_layout[hostname][test_api_beacon_node_rest_index|int].branch }} redirect_ports: - src: 80 diff --git a/ansible/host_vars/linux-02.ih-eu-mda1.nimbus.mainnet.yml b/ansible/host_vars/linux-02.ih-eu-mda1.nimbus.mainnet.yml index 7d21ff4..cbd0c9c 100644 --- a/ansible/host_vars/linux-02.ih-eu-mda1.nimbus.mainnet.yml +++ b/ansible/host_vars/linux-02.ih-eu-mda1.nimbus.mainnet.yml @@ -3,12 +3,13 @@ beacon_node_rest_address: '0.0.0.0' # Extract dynamically port form layout. -test_api_beacon_node_branch: 'testing' test_api_beacon_node_rest_index: |- {{ nodes_layout[hostname] - | ansible.utils.index_of(test='eq', key='branch', value=test_api_beacon_node_branch) }} + | ansible.utils.index_of(test='eq', key='public_api', value=True) }} test_api_beacon_node_rest_port: |- {{ beacon_node_rest_port_base + test_api_beacon_node_rest_index|int }} +test_api_beacon_node_branch: |- + {{ nodes_layout[hostname][test_api_beacon_node_rest_index|int].branch }} # WARNING: This will change if number of nodes changes. redirect_ports: