openqa: add a dumb 'fixes' role to tweak fedmsg config

Ralph *mostly* fixed it, but the config we get from fedmsg/base
still doesn't quite work, so this just hacks it up after that
role's done. This will go away with a couple more fixes to the
fedmsg/base role.
This commit is contained in:
Adam Williamson 2016-03-10 16:55:31 -08:00
parent 7e914a1d7b
commit aa8cf397ee
2 changed files with 15 additions and 0 deletions

View file

@ -47,6 +47,7 @@
- { role: fedmsg/base, tags: ['fedmsg_base', 'fedmsg'] }
- { role: fedmsg/relay, tags: ['fedmsg_relay', 'fedmsg'] }
- { role: fedmsg/hub, tags: ['fedmsg_hub', 'fedmsg'] }
- { role: openqa/fixes, tags: ['openqa_fixes'] }
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -0,0 +1,14 @@
# This file contains some temporary fixes for the fedmsg config on openQA
# hosts, since the roles still aren't quite right for firewalled systems.
- name: remove internal message source policy
file: path=/etc/fedmsg.d/policy.py state=absent
- name: use packaged relay.py, not ansible one (which doesn't work)
command: cp /etc/fedmsg.d/relay.py.rpmnew /etc/fedmsg.d/relay.py
- name: restart fedmsg services
service: name={{ item }} state=restarted
with_items:
- fedmsg-hub
- fedmsg-relay