From d5729b6df21024294d705260d38444c835dfc509 Mon Sep 17 00:00:00 2001 From: lukken <lukken@astron.nl> Date: Thu, 27 Oct 2022 17:46:49 +0200 Subject: [PATCH] L2SS-983: Verify dsconfig changes in deploy --- deploy/deploy.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/deploy/deploy.yml b/deploy/deploy.yml index 726f0c7a1..5b525fc1e 100644 --- a/deploy/deploy.yml +++ b/deploy/deploy.yml @@ -57,11 +57,11 @@ shell: "make stop" args: chdir: "{{ default_install_path }}/docker-compose" - - name: Git Fetch All - changed_when: false - shell: "git fetch --all" - args: - chdir: "{{ default_install_path }}" +# - name: Git Fetch All +# changed_when: false +# shell: "git fetch --all" +# args: +# chdir: "{{ default_install_path }}" - name: Update Sources changed_when: false shell: "git checkout {{ station_version }}" @@ -91,11 +91,29 @@ shell: "./sbin/load_ConfigDb.sh CDB/LOFAR_ConfigDb.json" args: chdir: "{{ default_install_path }}" + - name: Get Base Database Config + changed_when: false + shell: "./sbin/load_ConfigDb.sh CDB/LOFAR_ConfigDb.json 2>&1" + register: base_dsconfig_result + args: + chdir: "{{ default_install_path }}" + - name: Verify Base Database Config + when: '"No changes needed" in base_dsconfig_result.stdout' + debug: msg="Base database changes stored" - name: Update Station Database Config changed_when: false shell: "./sbin/load_ConfigDb.sh CDB/stations/{{ station_config }}" args: chdir: "{{ default_install_path }}" + - name: Get Station Database Config + changed_when: false + shell: "./sbin/load_ConfigDb.sh CDB/stations/{{ station_config }} 2>&1" + register: station_dsconfig_result + args: + chdir: "{{ default_install_path }}" + - name: Verify Station Database Config + when: '"No changes needed" in station_dsconfig_result.stdout' + debug: msg="Station database changes stored" - name: Start Station changed_when: false shell: "make start" -- GitLab