Skip to content

Commit

Permalink
Merge pull request #660 from OpenImaging/update-cloudamqp-credentials
Browse files Browse the repository at this point in the history
Update cloudamqp credentials
  • Loading branch information
zachmullen authored Dec 14, 2023
2 parents 1ce60d1 + 8dbd90d commit 05f413a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 05f413a

Please sign in to comment.