summaryrefslogtreecommitdiffstats
path: root/roles/releng/files/fedmsg/endpoints.py
blob: d7729d78faf5b603fe9c963726a29c56268c3d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
suffix = 'phx2.fedoraproject.org'
non_phx_suffix = 'fedoraproject.org'

config = dict(
    # This is a dict of possible addresses from which fedmsg can send
    # messages.  fedmsg.init(...) requires that a 'name' argument be passed
    # to it which corresponds with one of the keys in this dict.
    endpoints = {
        # This is the output side of the relay to which all other
        # services can listen.
        "relay_outbound": [
            "tcp://busgateway01.%s:3999" % suffix,
        ],

        # For other, more 'normal' services, fedmsg will try to guess the
        # name of it's calling module to determine which endpoint definition
        # to use.  This can be overridden by explicitly providing the name in
        # the initial call to fedmsg.init(...).
        "bodhi.app01": [
            "tcp://app01.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "bodhi.app02": [
            "tcp://app02.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "bodhi.branched-composer": [
            "tcp://branched-composer.%s:3000" % suffix
        ],
        "bodhi.rawhide-composer": [
            "tcp://rawhide-composer.%s:3000" % suffix
        ],
        "bodhi.app03": [
            "tcp://app03.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "bodhi.app04": [
            "tcp://app04.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "bodhi.app05": [
            "tcp://app05.%s:300%i" % (non_phx_suffix, i)
            for i in range(8)
        ],
        "bodhi.app07": [
            "tcp://app07.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "bodhi.app08": [
            "tcp://app08.%s:300%i" % (non_phx_suffix, i)
            for i in range(8)
        ],
        "bodhi.releng04": [
            "tcp://releng04.%s:3000" % suffix
        ],
        "bodhi.relepel01": [
            "tcp://relepel01.%s:3000" % suffix
        ],
        "fas.fas01": [
            "tcp://fas01.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "fedoratagger.tagger01": [
            "tcp://tagger01.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "fedoratagger.tagger02": [
            "tcp://tagger02.%s:300%i" % (suffix, i)
            for i in range(8)
        ],
        "busmon.app01": [
            "tcp://app01.%s:3008" % suffix,
        ],
        "busmon.app02": [
            "tcp://app02.%s:3008" % suffix,
        ],
        "supybot.value03": [
            "tcp://value03.%s:3000" % suffix,
        ],
    },

    # 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://busgateway01.%s:9941" % suffix,
)