Skip to content

Commit 0e59a47

Browse files
committed
Allow setting the SENTRY_DNS
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.
1 parent 73db208 commit 0e59a47

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

provision-contest/ansible/group_vars/all/secret.yml.example

+3
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ CDS_CONTESTS:
6666
password: admin
6767

6868
PRESCLIENT_CONTEST: nwerc18
69+
70+
# Sentry DSN URL
71+
# SENTRY_DSN:

provision-contest/ansible/roles/domserver/tasks/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,14 @@
112112
loop:
113113
- nginx
114114
- php{{ php_version.stdout }}-fpm
115+
116+
- name: Send errors to Sentry
117+
lineinfile:
118+
regexp: '^SENTRY_DSN='
119+
state: present
120+
line: "SENTRY_DSN={{ SENTRY_DSN | default('') }}"
121+
dest: "{{ DJ_DIR }}/webapp/.env.local"
122+
create: true
123+
mode: 0664
124+
group: domjudge
125+
owner: domjudge

0 commit comments

Comments
 (0)