Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the SENTRY_DNS #118

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading