summaryrefslogtreecommitdiffstats
path: root/roles/check-compose/tasks
diff options
context:
space:
mode:
authorAdam Williamson <awilliam@redhat.com>2016-03-04 14:25:46 -0800
committerAdam Williamson <awilliam@redhat.com>2016-03-04 14:29:54 -0800
commit25e6469e4da6a6b3fad50efc79aba8a377c10a2c (patch)
tree0f0e9ec3bae2a00a2ebb5a4e70a11e8f808c8274 /roles/check-compose/tasks
parent5a968a1881e0a717d48b8c1a0f1f913cdd83190c (diff)
downloadansible-25e6469e4da6a6b3fad50efc79aba8a377c10a2c.tar.gz
ansible-25e6469e4da6a6b3fad50efc79aba8a377c10a2c.tar.xz
ansible-25e6469e4da6a6b3fad50efc79aba8a377c10a2c.zip
check-compose: switch to fedmsg-hub based fedmsg consumer
I'm switching the misc. QA fedmsg consumers over to using fedmsg- hub, due to https://github.com/fedora-infra/fedmsg/issues/365 . So we need to adjust how we install check-compose, install a config file to enable the consumer, and also set up the fedmsg base and hub roles on the openqa server boxes (which do the check-compose job ATM).
Diffstat (limited to 'roles/check-compose/tasks')
-rw-r--r--roles/check-compose/tasks/main.yml23
1 files changed, 7 insertions, 16 deletions
diff --git a/roles/check-compose/tasks/main.yml b/roles/check-compose/tasks/main.yml
index 1fef4e146..2f4b6761b 100644
--- a/roles/check-compose/tasks/main.yml
+++ b/roles/check-compose/tasks/main.yml
@@ -62,27 +62,18 @@
dest: /root/fedora-qa
register: gitqa
-- name: Clean check-compose
- command: "make prefix=/usr clean"
- args:
- chdir: /root/fedora-qa/check-compose
- when: "gitqa|changed"
-
-- name: Build check-compose
- command: "make prefix=/usr"
- args:
- chdir: /root/fedora-qa/check-compose
- when: "gitqa|changed"
-
- name: Install check-compose
- command: "make prefix=/usr install"
+ command: "python setup.py install"
args:
chdir: /root/fedora-qa/check-compose
when: "gitqa|changed"
-- name: Reload systemd config to pick up installed units
- command: "systemctl daemon-reload"
- when: "gitqa|changed"
+- 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