From f1fdd141c708b98992a5af8fc500d029ddc6b164 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 20 Apr 2026 15:00:49 +0200 Subject: [PATCH] copr: configure SENTRY_DSN --- roles/copr/backend/templates/copr-be.conf.j2 | 5 +++++ roles/copr/dist_git/files/dist-git.conf | 3 +++ roles/copr/frontend/templates/copr.conf | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/roles/copr/backend/templates/copr-be.conf.j2 b/roles/copr/backend/templates/copr-be.conf.j2 index 2d7801a1c3..bd21332638 100644 --- a/roles/copr/backend/templates/copr-be.conf.j2 +++ b/roles/copr/backend/templates/copr-be.conf.j2 @@ -114,6 +114,11 @@ pulp_content_url={{ pulp_content_url }} # praiskup +{% if env == 'production' %} +sentry_dsn={{ copr_sentry_dsn }} +{% endif %} + + [builder] # default is 1800, this probably has no effect! timeout=108000 diff --git a/roles/copr/dist_git/files/dist-git.conf b/roles/copr/dist_git/files/dist-git.conf index 3e1f871ebc..30c59e82ad 100644 --- a/roles/copr/dist_git/files/dist-git.conf +++ b/roles/copr/dist_git/files/dist-git.conf @@ -12,3 +12,6 @@ gitolite = False # name of the default branch (a.k.a. master or main) default_branch = master +{% if env == 'production' %} +sentry_dsn={{ copr_sentry_dsn }} +{% endif %} diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index 840257a23a..4de5c4040f 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -321,3 +321,8 @@ OIDC_METADATA = "https://id.fedoraproject.org/openidc/.well-known/openid-configu OIDC_SECRET = "{{ copr_oidc_stg_client_secret }}" OIDC_METADATA = "https://id.stg.fedoraproject.org/openidc/.well-known/openid-configuration" {% endif %} + + +{% if env == 'production' %} +SENTRY_DSN={{ copr_sentry_dsn }} +{% endif %}