Blame fedmsg.d/pagure.py

Pierre-Yves Chibon e77021
""" This is an example pagure configuration for fedmsg.
Pierre-Yves Chibon e77021
By convention, it is normally installed as ``/etc/fedmsg.d/pagure.py``
Pierre-Yves Chibon e77021
Pierre-Yves Chibon e77021
For Fedora Infrastructure, our own version of this file is kept in
Pierre-Yves Chibon e77021
``ansible/roles/fedmsg/base/templates/``
Pierre-Yves Chibon e77021
Pierre-Yves Chibon e77021
It needs to be globally available so remote consumers know how to find the
Pierre-Yves Chibon e77021
pagure producer (wsgi process).
Pierre-Yves Chibon e77021
"""
Pierre-Yves Chibon e77021
Pierre-Yves Chibon e77021
import socket
Pierre-Yves Chibon e77021
Pierre-Yves Chibon 73d120
hostname = socket.gethostname().split(".")[0]
Pierre-Yves Chibon 73d120
Pierre-Yves Chibon 73d120
config = dict(endpoints={"pagure.%s" % hostname: ["tcp://127.0.0.1:3005"]})