Planet: Add fedora-messaging config file
Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
parent
5cfb5377ef
commit
9fdc590afb
2 changed files with 116 additions and 0 deletions
107
roles/openshift-apps/planet/templates/config.toml
Normal file
107
roles/openshift-apps/planet/templates/config.toml
Normal file
|
@ -0,0 +1,107 @@
|
||||||
|
# A sample configuration for fedora-messaging. This file is in the TOML format.
|
||||||
|
# For complete details on all configuration options, see the documentation
|
||||||
|
# https://fedora-messaging.readthedocs.io/en/latest/configuration.html.
|
||||||
|
|
||||||
|
amqp_url = "amqps://planet{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub"
|
||||||
|
|
||||||
|
{% if env == "staging" %}
|
||||||
|
topic_prefix = "org.fedoraproject.stg"
|
||||||
|
{% else %}
|
||||||
|
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" %}
|
||||||
|
'stg.fedoraplanet.org.build'
|
||||||
|
{% else %}
|
||||||
|
'fedoraplanet.org.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"]
|
||||||
|
|
||||||
|
[log_config.root]
|
||||||
|
level = "WARNING"
|
||||||
|
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"]
|
|
@ -13,3 +13,12 @@ items:
|
||||||
data:
|
data:
|
||||||
krb5.conf: |-
|
krb5.conf: |-
|
||||||
{{ load_file('krb5.conf') | indent(6) }}
|
{{ load_file('krb5.conf') | indent(6) }}
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: fedora-messaging-configmap
|
||||||
|
labels:
|
||||||
|
app: planet
|
||||||
|
data:
|
||||||
|
config.toml: |-
|
||||||
|
{{ load_file('config.toml') | indent(6) }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue