get-geth-api-urls: rename variables for clarity

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-05-05 19:21:49 +02:00
parent 5635b39e50
commit 01cf22c9f8
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
3 changed files with 5 additions and 4 deletions

View File

@ -68,11 +68,12 @@ beacon_node_light_client_data_serve: true
beacon_node_light_client_data_import_mode: 'full'
# Execution layer Enginer API
beacon_node_exec_layer_jwt_secret: '{{ geth_authrpc_jwtsecret }}'
beacon_node_exec_layer_urls_local_geth: ['http://localhost:{{ geth_authrpc_port|string }}']
beacon_node_exec_layer_urls: |-
{{ (data_center in ["he-eu-hel1", "ih-eu-mda1"])
| ternary(
["http://localhost:"+(geth_authrpc_port|string)],
beacon_node_exec_layer_urls_all
beacon_node_exec_layer_urls_local_geth,
beacon_node_exec_layer_urls_discovered_geth
) }}
# Periodic resync to save space
beacon_node_resync_enabled: true

View File

@ -13,7 +13,7 @@
# On Windows json attribute is missing when it's [].
- name: Extract Geth websocket IP and port
set_fact:
beacon_node_exec_layer_urls_all: |
beacon_node_exec_layer_urls_discovered_geth: |
{{ geth_rpc_services.results
| sum(attribute="json", start=[])
| map(attribute="ServiceMeta.url")

View File

@ -17,7 +17,7 @@
# On Windows json attribute is missing when it's [].
- name: Extract Geth websocket IP and port
set_fact:
beacon_node_exec_layer_urls_all: |
beacon_node_exec_layer_urls_discovered_geth: |
{{ geth_rpc_services.results
| selectattr("json", "defined")
| sum(attribute="json", start=[])