diff options
| author | Adam Williamson <awilliam@redhat.com> | 2017-02-10 23:48:00 -0800 |
|---|---|---|
| committer | Adam Williamson <awilliam@redhat.com> | 2017-02-10 23:48:00 -0800 |
| commit | 8f32e86245513c3a9f2a280e15a934b482d534f8 (patch) | |
| tree | b8d9faa80651db5899f63ea8047d2157c3b13a57 /roles/openqa | |
| parent | 077697ac19a2129fd232c3aa5a4a3296224f18bd (diff) | |
| download | ansible-8f32e86245513c3a9f2a280e15a934b482d534f8.tar.gz ansible-8f32e86245513c3a9f2a280e15a934b482d534f8.tar.xz ansible-8f32e86245513c3a9f2a280e15a934b482d534f8.zip | |
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.
Diffstat (limited to 'roles/openqa')
| -rw-r--r-- | roles/openqa/dispatcher/templates/schedule.conf.j2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/openqa/dispatcher/templates/schedule.conf.j2 b/roles/openqa/dispatcher/templates/schedule.conf.j2 index b7fdf2e06..ab79ae819 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 %} |
