2021-10-04 11:42:33 +00:00
|
|
|
---
|
|
|
|
# Communityu test REST API endpoint.
|
|
|
|
beacon_node_rest_address: '0.0.0.0'
|
|
|
|
|
2024-05-08 08:20:06 +00:00
|
|
|
# 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) }}
|
|
|
|
test_api_beacon_node_rest_port: |-
|
|
|
|
{{ beacon_node_rest_port_base + test_api_beacon_node_rest_index|int }}
|
|
|
|
|
2021-10-04 11:42:33 +00:00
|
|
|
# WARNING: This will change if number of nodes changes.
|
|
|
|
redirect_ports:
|
2024-05-08 08:20:06 +00:00
|
|
|
- src: 80
|
|
|
|
dst: '{{ test_api_beacon_node_rest_port }}'
|
|
|
|
comment: 'Public Beacon API ({{ test_api_beacon_node_branch }})'
|