mirror of
https://github.com/ansible/awx.git
synced 2026-09-05 03:18:29 -02:30
Implemented fact scan storage logic.
* added mongo connection logic * added mongo dbtransform logic to allow keys with . and $ * altered tower fact scanner CacheModule to emit a message for each fact module facts (including ansible facts). Previously, seperate facts module facts were getting concatenated to each subsequent emi * tower fact scanner CacheModule timeout set as to not hang for forever * broke apart commands.py test * added unit test for run_fact_cache_receiver, facts, and dbtransform
This commit is contained in:
@@ -1,2 +1,10 @@
|
||||
# Copyright (c) 2014 AnsibleWorks, Inc.
|
||||
# All Rights Reserved.
|
||||
|
||||
from django.conf import settings
|
||||
from mongoengine import connect
|
||||
from mongoengine.connection import get_db
|
||||
from awx.main.dbtransform import register_key_transform
|
||||
|
||||
connect(settings.MONGO_DB)
|
||||
register_key_transform(get_db())
|
||||
@@ -7,6 +7,8 @@ import glob
|
||||
from datetime import timedelta
|
||||
import tempfile
|
||||
|
||||
MONGO_DB = 'system_tracking'
|
||||
|
||||
# Update this module's local settings from the global settings module.
|
||||
from django.conf import global_settings
|
||||
this_module = sys.modules[__name__]
|
||||
|
||||
@@ -14,6 +14,8 @@ from split_settings.tools import optional, include
|
||||
# Load default settings.
|
||||
from defaults import *
|
||||
|
||||
MONGO_DB = 'system_tracking_dev'
|
||||
|
||||
# Disable capturing all SQL queries when running celeryd in development.
|
||||
if 'celeryd' in sys.argv:
|
||||
SQL_DEBUG = False
|
||||
|
||||
Reference in New Issue
Block a user