2023-12-01 10:19:51 +00:00
|
|
|
---
|
|
|
|
# Communityu test REST API endpoint.
|
|
|
|
beacon_node_rest_address: '0.0.0.0'
|
|
|
|
|
2024-06-18 10:02:49 +00:00
|
|
|
# Extract dynamically port form layout.
|
|
|
|
test_api_beacon_node_rest_index: |-
|
2024-09-16 06:10:36 +00:00
|
|
|
{{ nodes_layout[inventory_hostname]
|
2024-06-18 10:02:49 +00:00
|
|
|
| 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 + 1 }}
|
|
|
|
test_api_beacon_node_branch: |-
|
2024-09-16 06:10:36 +00:00
|
|
|
{{ nodes_layout[inventory_hostname][test_api_beacon_node_rest_index|int].branch }}
|
2024-06-18 10:02:49 +00:00
|
|
|
|
2023-12-01 10:19:51 +00:00
|
|
|
# WARNING: This will change if number of nodes changes.
|
|
|
|
redirect_ports:
|
2024-10-01 11:39:43 +00:00
|
|
|
public-beacon-api:
|
|
|
|
src: 80
|
2024-06-18 10:02:49 +00:00
|
|
|
dst: '{{ test_api_beacon_node_rest_port }}'
|
|
|
|
comment: 'Test Beacon API ({{ test_api_beacon_node_branch }})'
|