use idx instead of port_offset loop_var name

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-08-10 16:54:21 +02:00
parent b4b97d9338
commit 1ffc159f70
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
4 changed files with 16 additions and 16 deletions

View File

@ -10,14 +10,14 @@ beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch
beacon_node_service_path: '/data/{{ beacon_node_service_name }}'
beacon_node_era_symlink_path: '{{ nimbus_era_files_timer_enabled | ternary(nimbus_era_files_timer_path, false) }}'
# Ports
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
beacon_node_listening_port: '{{ 9000 + port_offset }}'
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
beacon_node_rest_port: '{{ 9300 + port_offset }}'
beacon_node_discovery_port: '{{ 9000 + idx }}'
beacon_node_listening_port: '{{ 9000 + idx }}'
beacon_node_metrics_port: '{{ 9200 + idx }}'
beacon_node_rest_port: '{{ 9300 + idx }}'
# Firewall
beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
# Builds
beacon_node_build_frequency: '*-*-* {{ 12 + port_offset }}:00:00'
beacon_node_build_frequency: '*-*-* {{ 12 + idx }}:00:00'
# Tuning
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
# Monitoring

View File

@ -12,10 +12,10 @@ beacon_node_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}
service_number: '{{ node.get("num", False) | ternary(("-%02d"|format(node.get("num", 0))), "") }}'
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}'
# Ports
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
beacon_node_listening_port: '{{ 9000 + port_offset }}'
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
beacon_node_rest_port: '{{ 9300 + port_offset }}'
beacon_node_discovery_port: '{{ 9000 + idx }}'
beacon_node_listening_port: '{{ 9000 + idx }}'
beacon_node_metrics_port: '{{ 9200 + idx }}'
beacon_node_rest_port: '{{ 9300 + idx }}'
# Firewall
beacon_node_firewall_libp2p_open: '{{ node.get("open_libp2p_ports", true) }}'
# Tuning

View File

@ -26,7 +26,7 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx
- name: Deploy mainnet linux beacon nodes
become: true
@ -42,7 +42,7 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx
- name: Configure periodic puging of nodes DBs
become: true
@ -54,4 +54,4 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx

View File

@ -26,7 +26,7 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx
- name: Deploy mainnet linux beacon nodes
become: true
@ -41,7 +41,7 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx
- name: Deploy prater Windows beacon nodes
become: true
@ -57,7 +57,7 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx
- name: Deploy prater macOS beacon nodes
become: true
@ -71,4 +71,4 @@
with_items: '{{ nodes_layout[hostname] }}'
loop_control:
loop_var: node
index_var: port_offset
index_var: idx