Do not accept enterprise licenses in some cases.

This commit makes it so that enterprise licenses are rejected in HA
environments if there is no active MongoDB server.

Additionally, it suppresses trying to connect to MongoDB in cases where
it is not present or meaningful.
This commit is contained in:
Luke Sneeringer
2015-06-04 14:42:09 -05:00
parent b41546a20e
commit b0b5e3a726
4 changed files with 31 additions and 3 deletions

View File

@@ -13,6 +13,11 @@ from split_settings.tools import optional, include
# Load default settings.
from defaults import * # NOQA
MONGO_HOST = '127.0.0.1'
MONGO_PORT = 27017
MONGO_USERNAME = None
MONGO_PASSWORD = None
MONGO_DB = 'system_tracking_dev'
# Disable capturing all SQL queries when running celeryd in development.