From 857795d945d7c299a13bcf655abdaee5d81c6e99 Mon Sep 17 00:00:00 2001 From: Silvie Chlupova Date: Mon, 2 Sep 2019 09:32:21 +0200 Subject: [PATCH] copr: devel frontend should not send emails to everyone https://pagure.io/copr/copr/pull-request/959 --- inventory/group_vars/copr_front_dev | 8 ++++++++ roles/copr/frontend/templates/copr.conf | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/inventory/group_vars/copr_front_dev b/inventory/group_vars/copr_front_dev index b43bf08087..b314c1614a 100644 --- a/inventory/group_vars/copr_front_dev +++ b/inventory/group_vars/copr_front_dev @@ -17,3 +17,11 @@ letsencrypt: - copr-fe-dev.cloud.fedoraproject.org challenge_dir: /var/www/html mail: copr-devel@lists.fedorahosted.org + +whitelist_emails: + - msuchy@redhat.com + - praiskup@redhat.com + - jkadlcik@redhat.com + - dturecek@redhat.com + - thrnciar@redhat.com + - schlupov@redhat.com diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index dd096ddf13..a30535e55f 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -65,3 +65,11 @@ DEFER_BUILD_SECONDS = 300 ENABLE_DISCUSSION = True DISCOURSE_URL = "https://discussion.fedoraproject.org/" + +WHITELIST_EMAILS = [ +{% if whitelist_emails is defined %} +{% for recipient in whitelist_emails %} + "{{ recipient }}", +{% endfor %} +{% endif %} +]