From fed64804cbafa578cb14427f4cc01db5e20cd039 Mon Sep 17 00:00:00 2001 From: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:42:11 +0200 Subject: [PATCH] ADD: Builder Tag --- controls/roles/update-changes/molecule/215/verify.yml | 1 + .../update-changes/tasks/2.1.5/charon_changes.yaml | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/controls/roles/update-changes/molecule/215/verify.yml b/controls/roles/update-changes/molecule/215/verify.yml index b7318e7f6..0a1c4b100 100644 --- a/controls/roles/update-changes/molecule/215/verify.yml +++ b/controls/roles/update-changes/molecule/215/verify.yml @@ -89,4 +89,5 @@ - Lighthouse_service_configuration.command | select('match', '--produce-block-v3=false') | length == 0 - Teku_Beacon_service_configuration.command | select('match', '--validators-graffiti-client-append-format=DISABLED') | length == 1 - charon_service_configuration.command | select('match', '--feature-set-enable=json_requests') | length == 1 + - charon_service_configuration.command | select('match', '--builder-api') | length == 1 # EOF diff --git a/controls/roles/update-changes/tasks/2.1.5/charon_changes.yaml b/controls/roles/update-changes/tasks/2.1.5/charon_changes.yaml index e842cd533..04c0ecc5e 100644 --- a/controls/roles/update-changes/tasks/2.1.5/charon_changes.yaml +++ b/controls/roles/update-changes/tasks/2.1.5/charon_changes.yaml @@ -16,4 +16,12 @@ line: "{{ service_configuration_text | split('\n') | select('match', '^\\s*- --beacon-node-endpoints') | first | split('-') | first }}- --feature-set-enable=json_requests" when: - service_configuration.dependencies.consensusClients | selectattr('service', 'equalto', 'NimbusBeaconService') | list | length > 0 - - service_configuration.command | select('match', '--feature-set-enable=json_requests') | length == 0 \ No newline at end of file + - service_configuration.command | select('match', '--feature-set-enable=json_requests') | length == 0 + + - name: add builder tag if not present + lineinfile: + path: "{{ config_file_path }}" + insertafter: "--beacon-node-endpoints" + line: "{{ service_configuration_text | split('\n') | select('match', '^\\s*- --beacon-node-endpoints') | first | split('-') | first }}- --builder-api" + when: + - service_configuration.command | select('match', '--builder-api') | length == 0 \ No newline at end of file