From f9b4ea51d6a0f509b5ec8a0bbcf3c2f977e3be13 Mon Sep 17 00:00:00 2001 From: Pedro Moura Date: Wed, 18 Sep 2024 17:04:34 -0300 Subject: [PATCH] Planet: fix config.toml Signed-off-by: Pedro Moura --- .../planet/templates/config.toml | 91 +------------------ 1 file changed, 2 insertions(+), 89 deletions(-) diff --git a/roles/openshift-apps/planet/templates/config.toml b/roles/openshift-apps/planet/templates/config.toml index 476564019d..161d773f1e 100644 --- a/roles/openshift-apps/planet/templates/config.toml +++ b/roles/openshift-apps/planet/templates/config.toml @@ -5,99 +5,12 @@ amqp_url = "amqps://planet{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub" {% if env == "staging" %} - topic_prefix = "org.fedoraproject.stg" +topic_prefix = "org.fedoraproject.stg" {% else %} - topic_prefix = "org.fedoraproject.prod" +topic_prefix = "org.fedoraproject.prod" {% endif %} -publish_exchange = "amq.topic" -passive_declares = false -callback = "planet.consumer:Consumer" - [tls] ca_cert = "/etc/pki/fedora-messaging/cacert.pem" keyfile = "/etc/pki/fedora-messaging/planet-key.pem" certfile = "/etc/pki/fedora-messaging/planet-cert.pem" - -[client_properties] -app = "Planet" -# Some suggested extra fields: -# URL of the project that provides this consumer -app_url = "https://github.com/fedora-infra/planet" -# Contact emails for the maintainer(s) of the consumer - in case the -# broker admin needs to contact them, for e.g. -app_contacts_email = [ - "phsmoura@fedoraproject.org", - "kevin@fedoraproject.org" -] - -# Queue names *must* be in the normal UUID format: run "uuidgen" and use the -# output as your queue name. If you don't define a queue here, the server will -# generate a queue name for you. This queue will be non-durable, auto-deleted and -# exclusive. -# 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.00000000-0000-0000-0000-000000000000] -# durable = false -# auto_delete = true -# exclusive = true -# arguments = {} - -# If you use the server-generated queue names, you can leave out the "queue" -# parameter in the bindings definition. - -# Note the double brackets below. -# To add another binding, add another [[bindings]] section. -[[bindings]] -# queue = "00000000-0000-0000-0000-000000000000" -exchange = "amq.topic" -routing_keys = [ -{% if env == "staging" %} - 'org.fedoraproject.stg.planet.build' -{% else %} - 'org.fedoraproject.prod.planet.build' -{%- endif %} - ] - -[qos] -prefetch_size = 0 -prefetch_count = 25 - -[log_config] -version = 1 -disable_existing_loggers = true - -[log_config.formatters.simple] -format = "[%(name)s %(levelname)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.planet] -level = "DEBUG" -propagate = false -handlers = ["console"] - -# If your consumer sets up a logger, you must add a configuration for it -# here in order for the messages to show up. e.g. if it set up a logger -# called 'example_printer', you could do: -#[log_config.loggers.example_printer] -#level = "INFO" -#propagate = false -#handlers = ["console"] - -[log_config.root] -level = "ERROR" -handlers = ["console"]