Run fedmsg-relay on copr-be-dev

This commit is contained in:
Jakub Kadlčík 2017-03-22 20:23:47 +01:00 committed by Miroslav Suchý
parent 4edd3e0a87
commit 19fd3e6e6e
5 changed files with 46 additions and 2 deletions

View file

@ -12,7 +12,7 @@ copr_builder_network_name: "coprdev-net"
copr_builder_key_name: "buildsys"
copr_builder_security_groups: "ssh-anywhere-coprdev,default,ssh-from-persistent-coprdev"
fedmsg_enabled: "false"
fedmsg_enabled: "true"
do_sign: "true"

View file

@ -40,5 +40,5 @@
# Roles are run first, before tasks, regardless of where you place them here.
roles:
- base
- copr/backend
- fedmsg/base
- copr/backend

View file

@ -0,0 +1,23 @@
config = dict(
sign_messages=False,
validate_signatures=False,
endpoints={
# This is the output side of the relay to which all other
# services can listen.
"relay_outbound": [
"tcp://172.25.32.160:4001",
],
},
# This is the address of an active->passive relay. It is used for the
# fedmsg-logger command which requires another service with a stable
# listening address for it to send messages to.
# It is also used by the git-hook, for the same reason.
# It is also used by the mediawiki php plugin which, due to the oddities of
# php, can't maintain a single passive-bind endpoint of it's own.
relay_inbound=[
"tcp://172.25.32.160:2003",
],
)

View file

@ -0,0 +1,17 @@
- name: remove unnecessary fedmsg configs
file:
path: "{{ item }}"
state: absent
with_fileglob:
- /etc/fedmsg.d/endpoints*
- /etc/fedmsg.d/relay.py
- /etc/fedmsg.d/ssl.py
- name: install the MBS config
copy: src="fedmsg/mbs.py" dest=/etc/fedmsg.d/
- name: install fedmsg-relay
dnf: state=latest name=fedmsg-relay
- name: enable fedmsg-relay
service: name=fedmsg-relay enabled=yes state=started

View file

@ -216,3 +216,7 @@
- name: setup monitoring
include: "monitoring.yml"
- name: setup fedmsg for MBS
include: "fedmsg.yml"
when: env == "staging"