bodhi: Configure message routing keys.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
fff34396a5
commit
ad4e699c4a
3 changed files with 9 additions and 52 deletions
|
@ -13,11 +13,7 @@ num_cpus: 2
|
||||||
# Use the infra-testing repo
|
# Use the infra-testing repo
|
||||||
testing: True
|
testing: True
|
||||||
|
|
||||||
# Definining these vars has a number of effects
|
# configure mod_wsgi to use the vars for its own setup
|
||||||
# 1) mod_wsgi is configured to use the vars for its own setup
|
|
||||||
# 2) iptables opens enough ports for all threads for fedmsg
|
|
||||||
# 3) roles/fedmsg/base/ declares enough fedmsg endpoints for all threads
|
|
||||||
wsgi_fedmsg_service: bodhi
|
|
||||||
wsgi_procs: 2
|
wsgi_procs: 2
|
||||||
wsgi_threads: 2
|
wsgi_threads: 2
|
||||||
|
|
||||||
|
@ -38,50 +34,10 @@ host_group: bodhi2
|
||||||
nfs_mount_opts: "ro,hard,bg,intr,noatime,nodev,nosuid"
|
nfs_mount_opts: "ro,hard,bg,intr,noatime,nodev,nosuid"
|
||||||
datacenter: staging
|
datacenter: staging
|
||||||
|
|
||||||
# These set a config value in /etc/fedmsg.d/, see roles/bodhi2/base/
|
bodhi_message_routing_keys:
|
||||||
# frontend nodes won't run either of these
|
- "org.fedoraproject.*.bodhi.composer.start",
|
||||||
bodhi_masher_enabled: False
|
- "org.fedoraproject.*.bodhi.update.request.testing",
|
||||||
bodhi_updates_handler_enabled: False
|
- "org.fedoraproject.*.buildsys.tag",
|
||||||
bodhi_signed_handler_enabled: False
|
|
||||||
|
|
||||||
# These are consumed by a task in roles/fedmsg/base/main.yml
|
|
||||||
fedmsg_certs:
|
|
||||||
- service: shell
|
|
||||||
owner: root
|
|
||||||
group: sysadmin
|
|
||||||
can_send:
|
|
||||||
- logger.log
|
|
||||||
- service: bodhi
|
|
||||||
owner: root
|
|
||||||
group: bodhi
|
|
||||||
can_send:
|
|
||||||
- bodhi.buildroot_override.tag
|
|
||||||
- bodhi.buildroot_override.untag
|
|
||||||
- bodhi.stack.delete
|
|
||||||
- bodhi.stack.save
|
|
||||||
- bodhi.update.comment
|
|
||||||
- bodhi.update.complete.testing
|
|
||||||
- bodhi.update.edit
|
|
||||||
- bodhi.update.karma.threshold
|
|
||||||
- bodhi.update.request.obsolete
|
|
||||||
- bodhi.update.request.revoke
|
|
||||||
- bodhi.update.request.stable
|
|
||||||
- bodhi.update.request.testing
|
|
||||||
- bodhi.update.request.unpush
|
|
||||||
- bodhi.update.requirements_met.stable
|
|
||||||
|
|
||||||
# Things that only the mash does - not the web UI
|
|
||||||
#- bodhi.mashtask.complete
|
|
||||||
#- bodhi.mashtask.mashing
|
|
||||||
#- bodhi.mashtask.start
|
|
||||||
#- bodhi.mashtask.sync.done
|
|
||||||
#- bodhi.mashtask.sync.wait
|
|
||||||
#- bodhi.errata.publish
|
|
||||||
#- bodhi.update.eject
|
|
||||||
|
|
||||||
# Rsync messages that get run from somewhere else entirely.
|
|
||||||
#- bodhi.updates.epel.sync
|
|
||||||
#- bodhi.updates.fedora.sync
|
|
||||||
|
|
||||||
|
|
||||||
# For the MOTD
|
# For the MOTD
|
||||||
|
|
|
@ -77,6 +77,7 @@
|
||||||
- role: rabbit/queue
|
- role: rabbit/queue
|
||||||
username: "bodhi{{ env_suffix }}"
|
username: "bodhi{{ env_suffix }}"
|
||||||
queue_name: "bodhi{{ env_suffix }}"
|
queue_name: "bodhi{{ env_suffix }}"
|
||||||
|
routing_keys: {{ bodhi_message_routing_keys }}
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -33,9 +33,9 @@ arguments = {}
|
||||||
queue = "bodhi{{ env_suffix }}"
|
queue = "bodhi{{ env_suffix }}"
|
||||||
exchange = "amq.topic"
|
exchange = "amq.topic"
|
||||||
routing_keys = [
|
routing_keys = [
|
||||||
"org.fedoraproject.*.bodhi.composer.start",
|
{% for key in bodhi_message_routing_keys %}
|
||||||
"org.fedoraproject.*.bodhi.update.request.testing",
|
"{{ key }}",
|
||||||
"org.fedoraproject.*.buildsys.tag",
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue