From 91cd0ffc24190818ee0dd52222d407f149b17e50 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 29 Apr 2019 11:27:58 +0200 Subject: [PATCH] elections: Add a configuration file for fedora-messaging Signed-off-by: Pierre-Yves Chibon --- .../elections/templates/fedora-messaging.toml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 roles/openshift-apps/elections/templates/fedora-messaging.toml diff --git a/roles/openshift-apps/elections/templates/fedora-messaging.toml b/roles/openshift-apps/elections/templates/fedora-messaging.toml new file mode 100644 index 0000000000..a1b2562a92 --- /dev/null +++ b/roles/openshift-apps/elections/templates/fedora-messaging.toml @@ -0,0 +1,23 @@ +# 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/stable/configuration.html + +# Broker address +amqp_url = "amqps://elections{{ 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/rabbitmq/ca/elections.ca" +keyfile = "/etc/pki/rabbitmq/key/elections.key" +certfile = "/etc/pki/rabbitmq/cert/elections.crt" + +[client_properties] +app = "elections" +