From 05b3ed58fd4b4b9f6e615a32889bd84f8e1c3070 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 22 Apr 2024 13:42:31 +0200 Subject: [PATCH] fix(scripts): warn about the vars dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When rendering the secrets, e.g., config template, via script, we run some parts of the playbooks that may depend on the variables for a deployment (like MP+ vs Automotive, and such). Warn about this fact to make sure there are no discrepancies introduced by outdated “secrets”. Signed-off-by: Matej Focko --- scripts/render_secrets_from_templates.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/render_secrets_from_templates.sh b/scripts/render_secrets_from_templates.sh index 6566bf6..8f3d593 100755 --- a/scripts/render_secrets_from_templates.sh +++ b/scripts/render_secrets_from_templates.sh @@ -17,3 +17,5 @@ ansible-playbook -v -c local -i localhost, \ -e path_to_secrets="$(realpath "${PATH_TO_SECRETS}")" \ -e service="${SERVICE}" \ playbooks/render_secrets_from_templates.yml + +echo "[WARNING] Please make sure your ‹vars/› are up-to-date, since the rendered secrets may depend on it."