openfun / arnold

:construction_worker_woman: Deploy your applications to Kubernetes with Ansible
MIT License
40 stars 8 forks source link

Cannot deploy, at least, marsha with eugene customer in development #257

Open lunika opened 5 years ago

lunika commented 5 years ago

Bug Report

Expected behavior/code

When I bootstrap the marsha application with eugene customer in development environment it should not fail.

Actual Behavior

It fails because secrets are not valid in marsha's vault.

I think the line 19 of file apps/marsha/templates/app/secret.yml.j2 should be:

DJANGO_SENTRY_DSN: "{{ MARSHA_VAULT.DJANGO_SENTRY_DSN | default('') | b64encode }}"

I also think that every django applications using sentry can have this issue.

Steps to Reproduce

  1. ./bin/bootstrap -e "apps_filter=marsha"

Environment

jmaupetit commented 5 years ago

Yeah it should be fixed as we did for Richie, see https://github.com/openfun/arnold/blob/master/apps/richie/templates/app/secret.yml.j2#L11