From f3fc1aa3093fa2832a70d2ebb43269ebd16eb307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 5 May 2023 20:13:31 +0200 Subject: [PATCH] service: use --no-el flag when no exec URLs set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- tasks/checks.yml | 8 -------- tasks/service.yml | 4 ++++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tasks/checks.yml b/tasks/checks.yml index a14a87f..8024d0f 100644 --- a/tasks/checks.yml +++ b/tasks/checks.yml @@ -1,12 +1,4 @@ --- -- name: Verify Exec layer Engine API URLs are provided - assert: - that: '{{ beacon_node_exec_layer_urls|length > 0 }}' - quiet: true - fail_msg: | - Providing Exec layer Engine API URLs is required to sync with Eth1 chain! - Verify that the 'beacon_node_exec_layer_urls' variable is set. - - name: Verify network name assert: that: '{{ beacon_node_network in beacon_node_valid_network_names }}' diff --git a/tasks/service.yml b/tasks/service.yml index 92a7d5c..5db07ad 100644 --- a/tasks/service.yml +++ b/tasks/service.yml @@ -21,9 +21,13 @@ --validators-dir="{{ beacon_node_validators_path }}" --era-dir="{{ beacon_node_era_dir_path }}" --history="{{ beacon_node_history_retention }}" + {% if beacon_node_exec_layer_urls|length == 0 %} + --no-el=true + {% else %} {% for url in beacon_node_exec_layer_urls | mandatory %} --el="{{ url | mandatory }}" {% endfor %} + {% endif %} {% if beacon_node_exec_layer_jwt_secret is defined %} --jwt-secret="{{ beacon_node_exec_layer_jwt_secret_path | mandatory }}" {% endif %}