This patch introduces an environment variable to switch freshmaker to an
internal mode to parse and handle messages from UMB specifically. So, in
configuration, all parsers and handlers for handling messages from
Fedora fedmsg are disabled when deploy internally and enable the mode.
FRESHMAKER_INSIDE_RH, set it to enable internal mode whatever its
value is.
Configure fedmsg-hub to use STOMP to connect to UMB and receive
messages. Broker URLs, certificate and private key files can be
configured via several new FRESHMAKER_STOMP_* environment variables.
FRESHMAKER_STOMP_URI, URIs of brokers separated by comma.
FRESHMAKER_STOMP_SSL_CRT, path to certificate file.
FRESHMAKER_STOMP_SSL_KEY, path to private key file.
FRESHMAKER_MESSAGING_TOPIC_PREFIX, part of queue name from the
beginning to word VirtualTopic, e.g. /queue/Consumer.msg-client-me.freshmaker_queue.VirtualTopic
Major changes:
Make event parsers configurable along with handlers in config
Reuse load_classes to load event parsers and handlers from config
Modify several config to add internal configuration for event parsers
and handlers
BrewRPMSignEvent is renamed to BrewSignRPMEvent, which is natrual
to follow the topic name schema brew.sign.rpm
This patch introduces an environment variable to switch freshmaker to an
internal mode to parse and handle messages from UMB specifically. So, in
configuration, all parsers and handlers for handling messages from
Fedora fedmsg are disabled when deploy internally and enable the mode.
FRESHMAKER_INSIDE_RH, set it to enable internal mode whatever itsvalue is.
Configure fedmsg-hub to use STOMP to connect to UMB and receive
messages. Broker URLs, certificate and private key files can be
configured via several new
FRESHMAKER_STOMP_*environment variables.FRESHMAKER_STOMP_URI, URIs of brokers separated by comma.FRESHMAKER_STOMP_SSL_CRT, path to certificate file.FRESHMAKER_STOMP_SSL_KEY, path to private key file.FRESHMAKER_MESSAGING_TOPIC_PREFIX, part of queue name from thebeginning to word VirtualTopic, e.g.
/queue/Consumer.msg-client-me.freshmaker_queue.VirtualTopicMajor changes:
and handlers
to follow the topic name schema brew.sign.rpm
Signed-off-by: Chenxiong Qi cqi@redhat.com