Skip to content

Commit

Permalink
fix(scripts): warn about the vars dependency (#568)
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”.
  • Loading branch information
mfocko authored Apr 22, 2024
2 parents c6368de + 05b3ed5 commit 1120b36
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 1120b36

Please sign in to comment.