Skip to content

Commit

Permalink
fix(scripts): warn about the vars dependency
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mfocko committed Apr 22, 2024
1 parent c6368de commit 05b3ed5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/render_secrets_from_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

0 comments on commit 05b3ed5

Please sign in to comment.