From 2a0f0e42bcd1435a4c60caf383b1a62a494c088d Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 14 Dec 2023 14:12:47 -0500 Subject: [PATCH 1/2] Document credential update script --- dev/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/README.md b/dev/README.md index 55e83668..15cac818 100644 --- a/dev/README.md +++ b/dev/README.md @@ -103,3 +103,10 @@ Run: Then dump the contents into `vaultvars.yml` and run: `ansible-playbook --vault-password-file ./vault-password -i hosts playbook.yml` + +### Handling automated Heroku credential updates + +Whenever the CloudAMQP plugin or Postgres plugin changes its URL (which happens automatically), +you'll need to update the worker accordingly. To do so, run the `update_creds.py` script in +the `ansible` directory. Copy/paste the updated values into the `vaultvars.yml` file and +commit the changes. Once the PR is merged, CD should automatically deploy the changes. From 8dbd90da0b6b63d9849c022df74c98b0bf85d054 Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 14 Dec 2023 14:14:13 -0500 Subject: [PATCH 2/2] Remove cloudamqp API key reference --- ansible/playbook.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ansible/playbook.yml b/ansible/playbook.yml index afc446c5..bf0ec0bd 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -15,7 +15,6 @@ AWS_ACCESS_KEY_ID: AKIAT4NQES3ZKUKTDLIU AWS_DEFAULT_REGION: us-east-1 AWS_SECRET_ACCESS_KEY: "{{ aws_secret_access_key }}" - CLOUDAMQP_APIKEY: "{{ cloudamqp_api_key }}" CLOUDAMQP_URL: "{{ cloudamqp_url }}" DATABASE_URL: "{{ database_url }}" DJANGO_ALLOWED_HOSTS: app.miqaweb.io