From 8f32e86245513c3a9f2a280e15a934b482d534f8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 10 Feb 2017 23:48:00 -0800 Subject: [PATCH] openqa/dispatcher: correct config for resultsdb reports This is a bit sloppy and infra-specific ATM, but does the job. I have a PR in for openqa_fedora_tools which changes the report behaviour a bit, once that lands I'll clean this up somewhat using variables. --- roles/openqa/dispatcher/templates/schedule.conf.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/openqa/dispatcher/templates/schedule.conf.j2 b/roles/openqa/dispatcher/templates/schedule.conf.j2 index b7fdf2e060..ab79ae819d 100644 --- a/roles/openqa/dispatcher/templates/schedule.conf.j2 +++ b/roles/openqa/dispatcher/templates/schedule.conf.j2 @@ -1,5 +1,5 @@ [report] -openqa_url: {{ external_hostname|default(ansible_nodename) }} +openqa_url: https://{{ external_hostname|default(ansible_nodename) }} {% if wikitcms_user is defined and wikitcms_password is defined %} submit_wiki: true submit_resultsdb: true @@ -7,3 +7,8 @@ submit_resultsdb: true submit_wiki: false submit_resultsdb: false {% endif %} +{% if deployment_type is defined and deployment_type == 'prod' %} +resultsdb_url: http://resultsdb01.qa.fedoraproject.org/resultsdb_api/api/v2.0/ +{% elif deployment_type is defined and deployment_type == 'stg' %} +resultsdb_url: http://resultsdb-stg01.qa.fedoraproject.org/resultsdb_api/api/v2.0/ +{% endif %}