Skip to content

Commit

Permalink
Allow setting the SENTRY_DNS
Browse files Browse the repository at this point in the history
As we use our contests to test `main` most of the time we should gather
all encountered errors often, this makes this a bit easier.
  • Loading branch information
vmcj committed Apr 7, 2024
1 parent f130761 commit f879af0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provision-contest/ansible/group_vars/all/secret.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ CDS_CONTESTS:
password: admin

PRESCLIENT_CONTEST: nwerc18

# Sentry DSN URL
# SENTRY_DSN:
11 changes: 11 additions & 0 deletions provision-contest/ansible/roles/domserver/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,14 @@
loop:
- nginx
- php{{ php_version.stdout }}-fpm

- name: Send errors to Sentry
lineinfile:
regexp: '^SENTRY_DSN='
state: present
line: "SENTRY_DSN={{ SENTRY_DSN | default('') }}"
dest: "{{ DJ_DIR }}/webapp/.env.local"
create: true
mode: 0664
group: domjudge
owner: domjudge

0 comments on commit f879af0

Please sign in to comment.