scripts: Run generate_secrets.py during the upgrade process.

Now that generate_secrets.py is idempotent, this allows us to
conveniently add new secrets whenever they are required.
This commit is contained in:
Tim Abbott
2017-05-16 22:09:23 -07:00
parent 2c6a91e24a
commit 45a4aeac64

View File

@@ -66,6 +66,11 @@ subprocess.check_call([os.path.join(deploy_path, "scripts", "lib", "create-produ
subprocess.check_call([os.path.join(deploy_path, "scripts", "lib", "install-node"),
deploy_path])
# Generate any new secrets that were added in the new version required.
# TODO: Do caching to only run this when it has changed.
subprocess.check_call([os.path.join(deploy_path, "scripts", "setup", "generate_secrets.py"),
"--production"])
# And then, building/installing the static assets.
if args.from_git:
# Note: The fact that this is before we apply puppet changes means