# A basic configuration for Fedora's message broker
#
# This file is in the TOML format.
amqp_url = "amqps://bodhi{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub"
callback = "fedora_minimal_compose:Consumer"
passive_declares = true

[tls]
ca_cert = "/etc/pki/fedora-messaging/cacert.pem"
keyfile = "/etc/pki/fedora-messaging/fmc-key.pem"
certfile = "/etc/pki/fedora-messaging/fmc-cert.pem"

[client_properties]
app = "fmc"
app_url = "https://pagure.io/releng/fmc"

[exchanges."amq.topic"]
type = "topic"
durable = true
auto_delete = false
arguments = {}

# Queue names *must* be in the normal UUID format: run "uuidgen" and use the
# output as your queue name. If your queue is not exclusive, anyone can connect
# and consume from it, causing you to miss messages, so do not share your queue
# name. Any queues that are not auto-deleted on disconnect are garbage-collected
# after approximately one hour.
#
# If you require a stronger guarantee about delivery, please talk to Fedora's
# Infrastructure team.
[queues."{{ fmc_queue_name }}"]
durable = false
auto_delete = true
exclusive = true
arguments = {}

[[bindings]]
queue = "{{ fmc_queue_name }}"
exchange = "amq.topic"
routing_keys = {{ fmc_routing_keys }}

[consumer_config]
rawhide = {{FedoraRawhideNumber}}
odcs_url = 'https://odcs.fedoraproject.org'
odcs_file = '/etc/releng-odcs-oidc-token'
packages_list = ['anaconda', 'authconfig', 'python-blivet', 'pyparted', 'parted', 'pykickstart', 'blivet-gui', 'libblockdev', 'e2fsprogs', 'dosfstools', 'grub2', 'shim-signed', 'libselinux']
# When we have the ability to run one compose for multiple builds, use the following list
# packages_list = ['anaconda', 'authconfig', 'python-blivet', 'pyparted', 'parted', 'pykickstart', 'blivet-gui', 'libblockdev', 'e2fsprogs', 'dosfstools', 'grub2', 'shim-signed', 'libselinux', 'chrony', 'fcoe-utils', 'hfsplus-tools', 'firewalld', 'realmd', 'yelp', 'libtimezonemap', 'kernel', 'systemd', 'dracut', 'plymouth', 'gtk3', 'python3']
koji_url = 'https://koji.fedoraproject.org/kojihub'
principal = 'releng@FEDORAPROJECT.ORG'
keytab = '/etc/krb5.releng.keytab'

[qos]
prefetch_size = 0
prefetch_count = 25

[log_config]
level = "DEBUG"
version = 1
disable_existing_loggers = true

[log_config.formatters.simple]
format = "%(asctime)s %(levelname)s %(name)s - %(message)s"

[log_config.handlers.console]
class = "logging.StreamHandler"
formatter = "simple"
stream = "ext://sys.stdout"

[log_config.loggers.fedora_messaging]
level = "INFO"
propagate = false
handlers = ["console"]

[log_config.loggers.twisted]
level = "INFO"
propagate = false
handlers = ["console"]

[log_config.loggers.pika]
level = "WARNING"
propagate = false
handlers = ["console"]

[log_config.root]
level = "ERROR"
handlers = ["console"]
