# Configuraton for Fedora Messaging # Broker address amqp_url = "amqps://bugzilla2fedmsg{{ env_suffix }}:@rabbitmq{{ env_suffix }}.fedoraproject.org/%2Fpubsub" # The topic_prefix configuration value will add a prefix to the topics of every sent message. # This is used for migrating from fedmsg, and should not be used afterwards. {% if env == "staging" %} topic_prefix = "org.fedoraproject.stg" {% else %} topic_prefix = "org.fedoraproject.prod" {% endif %} [tls] ca_cert = "/etc/pki/fedora-messaging/cacert.pem" keyfile = "/etc/pki/fedora-messaging/bugzilla2fedmsg-key.pem" certfile = "/etc/pki/fedora-messaging/bugzilla2fedmsg-cert.pem" [consumer_config] fasjson_url = "https://fasjson{{ env_suffix }}.fedoraproject.org" {% if env == "staging" %} [consumer_config.kafka] # Kafka servers # https://kafka-python.readthedocs.io/en/master/apidoc/KafkaConsumer.html {% if env == "staging" %} servers = [ "b-1.itpreprod.sui7dp.c7.kafka.us-east-1.amazonaws.com:9096", "b-2.itpreprod.sui7dp.c7.kafka.us-east-1.amazonaws.com:9096", "b-6.itpreprod.sui7dp.c7.kafka.us-east-1.amazonaws.com:9096", ] username = "{{ redhat_kafka_staging_username }}" password = "{{ redhat_kafka_staging_password }}" topics = ["qa.ants.engineering.bugzilla.bug", "stage.ants.engineering.bugzilla.bug"] {% else %} servers = [ "b-3.itprod.bvduhl.c8.kafka.us-east-1.amazonaws.com:9096", "b-2.itprod.bvduhl.c8.kafka.us-east-1.amazonaws.com:9096", "b-1.itprod.bvduhl.c8.kafka.us-east-1.amazonaws.com:9096", ] username = "{{ redhat_kafka_prod_username }}" password = "{{ redhat_kafka_prod_password }}" topics = ["ants.engineering.bugzilla.bug"] {% endif %} {% else %} [consumer_config.stomp] # Broker URI # http://nikipore.github.io/stompest/protocol.html#stompest.protocol.failover.StompFailoverUri # Example: failover:(tcp://remote1:61615,tcp://localhost:61616)?randomize=false,startupMaxReconnectAttempts=3,initialReconnectDelay=7,maxReconnectDelay=8,maxReconnectAttempts=0 uri = "ssl://umb.api.redhat.com:61612" user = "{{ redhat_dmz_prod_broker_username }}" pass = "{{ redhat_dmz_prod_broker_password }}" ssl_crt = "/etc/pki/stomp/msg-client-fedora-prod.crt" ssl_key = "/etc/pki/stomp/msg-client-fedora-prod.key" # Queue to subscribe to queue = "/queue/Consumer.fedorainfra.DO-NOT-COPY.VirtualTopic.eng.bugzilla.>" # Heartbeat to keep the connection open heartbeat = 10000 # How many messages to prefetch prefetch_size = 100 {% endif %} [consumer_config.bugzilla] # Products to relay messages for - messages for bugs files against # other products will be ignored products = ["Fedora", "Fedora EPEL"] # Whether to modify messages to look more like Bugzilla 4 ones did bz4compat = true [consumer_config.cache] backend = "dogpile.cache.memory" expiration_time = 60 arguments = {} [client_properties] app = "bugzilla2fedmsg" [log_config] version = 1 disable_existing_loggers = true [log_config.formatters.simple] format = "%(asctime)s [%(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.bugzilla2fedmsg] level = "DEBUG" propagate = false handlers = ["console"] [log_config.root] level = "WARNING" handlers = ["console"]