mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-28 12:32:50 +08:00
Config for the bodhi backend updates_handler.
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
- bodhi-threading.py
|
||||
- bodhi.py
|
||||
- masher.py
|
||||
- updates_handler.py
|
||||
notify:
|
||||
- restart fedmsg-hub
|
||||
tags:
|
||||
|
||||
@@ -5,7 +5,13 @@ suffix = 'phx2.fedoraproject.org'
|
||||
{% endif %}
|
||||
|
||||
config = dict(
|
||||
# Note, the masher runs on bodhi-backend01, while other consumers will run
|
||||
# on bodhi-backend02.
|
||||
{% if inventory_hostname.startswith('bodhi-backend01') %}
|
||||
masher=True,
|
||||
{% else %}
|
||||
masher=False,
|
||||
{% endif %}
|
||||
masher_topic='bodhi.masher.start',
|
||||
releng_fedmsg_certname='shell-bodhi-backend01.%s' % suffix,
|
||||
)
|
||||
|
||||
8
roles/bodhi2/base/templates/updates_handler.py
Normal file
8
roles/bodhi2/base/templates/updates_handler.py
Normal file
@@ -0,0 +1,8 @@
|
||||
config = dict(
|
||||
# TODO -- we're thinking about moving this to bodhi-backend02
|
||||
{% if inventory_hostname.startswith('bodhi-backend01') %}
|
||||
updates_handler=True,
|
||||
{% else %}
|
||||
updates_handler=False,
|
||||
{% endif %}
|
||||
)
|
||||
Reference in New Issue
Block a user