90 lines
2.8 KiB
YAML
90 lines
2.8 KiB
YAML
# Optional vars
|
|
# - checkcompose_server
|
|
## string - hostname of openQA server to connect to (if not set, openQA
|
|
## client configuration will determine this, default will be
|
|
## localhost)
|
|
# - checkcompose_url
|
|
## string - base URL for openQA result links (if not set, will be
|
|
## the URL the client actually wound up connecting to)
|
|
# - checkcompose_wait
|
|
## string - (digits) time in minutes to wait for openQA tests to complete
|
|
## before sending the report (defaults to 480)
|
|
# - checkcompose_emailfrom
|
|
## string - Email address to send report from (if not set, no report sent)
|
|
# - checkcompose_emailto
|
|
## string - Email address to send report to (if not set but email-from
|
|
## set, report will go to email-from, for testing usually)
|
|
## Split multiple addresses with spaces
|
|
# - checkcompose_smtp
|
|
## string - SMTP server to use for sending the report
|
|
# - checkcompose_json
|
|
## string - File to append JSON-formatted report summary to
|
|
# - checkcompose_loglevel
|
|
## string - log level
|
|
#
|
|
# NOTE: this is missing /etc/openqa/client.conf configuration, for now;
|
|
# we're assuming it'll be deployed on the openqa server boxes and hence
|
|
# client.conf will be in place (and localhost default would be correct
|
|
# anyhow)
|
|
|
|
# note: we need updates-testing until fedfind/wikitcms 2.x go stable
|
|
- name: Install required packages (testing)
|
|
dnf: name={{ item }} state=present enablerepo="updates-testing"
|
|
with_items:
|
|
- fedfind
|
|
tags:
|
|
- packages
|
|
|
|
- name: Install required packages
|
|
dnf: name={{ item }} state=present
|
|
with_items:
|
|
- python2-fedmsg-consumers
|
|
- python-setuptools
|
|
- python-six
|
|
tags:
|
|
- packages
|
|
|
|
- name: Check out openQA-python-client
|
|
git:
|
|
repo: https://github.com/os-autoinst/openQA-python-client.git
|
|
dest: /root/openQA-python-client
|
|
register: gitclient
|
|
|
|
- name: Check if python-client has ever been installed
|
|
command: "python -c 'import openqa_client'"
|
|
register: instclient
|
|
always_run: true
|
|
changed_when: "1 != 1"
|
|
failed_when: "1 != 1"
|
|
|
|
- name: Install openQA-python-client
|
|
command: "python setup.py install"
|
|
args:
|
|
chdir: /root/openQA-python-client
|
|
when: "gitclient|changed or instclient.rc > 0"
|
|
|
|
- name: Check out fedora-qa (where check-compose lives)
|
|
git:
|
|
repo: https://git.fedorahosted.org/git/fedora-qa.git
|
|
dest: /root/fedora-qa
|
|
register: gitqa
|
|
|
|
- name: Install check-compose
|
|
command: "python setup.py install"
|
|
args:
|
|
chdir: /root/fedora-qa/check-compose
|
|
when: "gitqa|changed"
|
|
notify:
|
|
- restart fedmsg-hub
|
|
|
|
- name: Enable fedmsg consumer
|
|
copy: src=checkcomp_consumer.py dest=/etc/fedmsg.d/checkcomp_consumer.py owner=root group=root mode=0644
|
|
notify:
|
|
- restart fedmsg-hub
|
|
tags:
|
|
- config
|
|
|
|
- name: Install config file
|
|
template: src=check-compose.conf.j2 dest=/etc/check-compose.conf mode=0644
|
|
tags:
|
|
- config
|