From 9a1f476909d94ccc33c2aaacafd8c96d335c4f88 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 19 Jan 2016 14:45:51 -0800 Subject: [PATCH] check-compose: only send Postrelease report on error Cloud folks want this email sent only if there's some kind of problem (missing image or openQA failure), I've just added an option to check-compose to allow for that, enable it here. --- inventory/group_vars/openqa | 1 + roles/check-compose/templates/check-compose.conf.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/inventory/group_vars/openqa b/inventory/group_vars/openqa index cc9232da49..378fdec47c 100644 --- a/inventory/group_vars/openqa +++ b/inventory/group_vars/openqa @@ -20,6 +20,7 @@ wikitcms_password: "{{ prod_wikitcms_password }}" checkcompose_emailfrom: rawhide@fedoraproject.org checkcompose_emailto: "test@lists.fedoraproject.org devel@lists.fedoraproject.org" checkcompose_postrelease_emailto: "mmcgrath@redhat.com cloud@lists.fedoraproject.org" +checkcompose_postrelease_emailerror: "true" checkcompose_smtp: bastion.phx2.fedoraproject.org checkcompose_url: "https://{{ external_hostname }}" diff --git a/roles/check-compose/templates/check-compose.conf.j2 b/roles/check-compose/templates/check-compose.conf.j2 index 6622e74e5d..4b83551801 100644 --- a/roles/check-compose/templates/check-compose.conf.j2 +++ b/roles/check-compose/templates/check-compose.conf.j2 @@ -27,3 +27,6 @@ loglevel: {{ checkcompose_loglevel }} {% if checkcompose_postrelease_emailto is defined %} email-to: {{ checkcompose_postrelease_emailto }} {% endif %} +{% if checkcompose_postrelease_emailerror is defined %} +email-error: {{ checkcompose_postrelease_emailerror }} +{% endif %}