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 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.