storyboard/storyboard/db
Matthew Treinish c7e0e458ff
Make notification driver configurable
This commit makes the notification driver configurable. Currently there
is only one notification backend available, rabbit/pika, but to support
emitting notifications to firehose.openstack.org in the future a MQTT
backend will be added. This commit lays to groundwork for doing this.
Note this only effects the notification publisher, the subscriber calls
will be updated in the future. (there is only one use of the subscriber
currently so that is updated manually to directly use the new path)

The external api for registering a pecan notification hook remains the
same, but the underlying publish call being made is set by the
configuration option. This enables a different publish() method to be
called depending on configuration.

To facilitate this change the current pika notification options are
deprecated in the 'notifications' group and are instead added to the
'pika-notifications' configuration group. This will be removed in the
future. A new 'driver' option is added to the ntofications group to
specify which driver to use which defaults to the current pika driver.

Change-Id: I5235ae4368f8bff13c767b87ced83173d52b5155
2018-03-07 10:29:59 -05:00
..
api Make notification driver configurable 2018-03-07 10:29:59 -05:00
migration set up tests to run with sqlite 2018-02-05 17:48:53 -05:00
__init__.py Add SQLalchemy database model 2014-01-13 18:52:47 +04:00
decorators.py Datetime instances from SQLAlchemy now all contain timezone. 2015-02-17 15:26:47 +03:00
models.py Increase project and project group name length limitation 2017-04-03 08:47:37 +00:00
projects_loader.py switch from incubated gettextutils to oslo.i18n 2016-11-07 08:47:47 -05:00
superusers_loader.py switch from incubated gettextutils to oslo.i18n 2016-11-07 08:47:47 -05:00