Commit 4cb44059 by Feanil Patel

Be able to override the docstore fully in secrets.

parent 79f6b659
...@@ -566,15 +566,6 @@ edxapp_environment: ...@@ -566,15 +566,6 @@ edxapp_environment:
# yaml based configs is complete # yaml based configs is complete
CONFIG_ROOT: "{{ edxapp_app_dir }}" CONFIG_ROOT: "{{ edxapp_app_dir }}"
EDXAPP_LMS_DRAFT_MONGO_READ_PREFERENCE: 'PRIMARY'
EDXAPP_LMS_SPLIT_MONGO_READ_PREFERENCE: 'PRIMARY'
EDXAPP_CMS_MONGO_READ_PREFERENCE: 'PRIMARY'
EDXAPP_LMS_DRAFT_MONGO_REPLICA_SET: !!null
EDXAPP_LMS_SPLIT_MONGO_REPLICA_SET: !!null
EDXAPP_CMS_MONGO_REPLICA_SET: !!null
edxapp_generic_doc_store_config: &edxapp_generic_default_docstore edxapp_generic_doc_store_config: &edxapp_generic_default_docstore
db: "{{ EDXAPP_MONGO_DB_NAME }}" db: "{{ EDXAPP_MONGO_DB_NAME }}"
host: "{{ EDXAPP_MONGO_HOSTS }}" host: "{{ EDXAPP_MONGO_HOSTS }}"
...@@ -584,20 +575,14 @@ edxapp_generic_doc_store_config: &edxapp_generic_default_docstore ...@@ -584,20 +575,14 @@ edxapp_generic_doc_store_config: &edxapp_generic_default_docstore
collection: 'modulestore' collection: 'modulestore'
ssl: "{{ EDXAPP_MONGO_USE_SSL }}" ssl: "{{ EDXAPP_MONGO_USE_SSL }}"
edxapp_lms_draft_doc_store_config: EDXAPP_LMS_DRAFT_DOC_STORE_CONFIG:
<<: *edxapp_generic_default_docstore <<: *edxapp_generic_default_docstore
read_preference: "{{ EDXAPP_LMS_DRAFT_MONGO_READ_PREFERENCE }}"
replicaSet: "{{ EDXAPP_LMS_DRAFT_MONGO_REPLICA_SET }}"
edxapp_lms_split_doc_store_config: EDXAPP_LMS_SPLIT_DOC_STORE_CONFIG:
<<: *edxapp_generic_default_docstore <<: *edxapp_generic_default_docstore
read_preference: "{{ EDXAPP_LMS_SPLIT_MONGO_READ_PREFERENCE }}"
replicaSet: "{{ EDXAPP_LMS_SPLIT_MONGO_REPLICA_SET }}"
edxapp_cms_doc_store_config: EDXAPP_CMS_DOC_STORE_CONFIG:
<<: *edxapp_generic_default_docstore <<: *edxapp_generic_default_docstore
read_preference: "{{ EDXAPP_CMS_MONGO_READ_PREFERENCE }}"
replicaSet: "{{ EDXAPP_CMS_MONGO_REPLICA_SET }}"
edxapp_generic_auth_config: &edxapp_generic_auth edxapp_generic_auth_config: &edxapp_generic_auth
EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST: "{{ EDXAPP_EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST }}" EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST: "{{ EDXAPP_EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST }}"
...@@ -802,14 +787,14 @@ lms_auth_config: ...@@ -802,14 +787,14 @@ lms_auth_config:
stores: stores:
- NAME: 'split' - NAME: 'split'
ENGINE: 'xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore' ENGINE: 'xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore'
DOC_STORE_CONFIG: "{{ edxapp_lms_split_doc_store_config }}" DOC_STORE_CONFIG: "{{ EDXAPP_LMS_SPLIT_DOC_STORE_CONFIG }}"
OPTIONS: OPTIONS:
default_class: 'xmodule.hidden_module.HiddenDescriptor' default_class: 'xmodule.hidden_module.HiddenDescriptor'
fs_root: "{{ edxapp_course_data_dir }}" fs_root: "{{ edxapp_course_data_dir }}"
render_template: 'edxmako.shortcuts.render_to_string' render_template: 'edxmako.shortcuts.render_to_string'
- NAME: 'draft' - NAME: 'draft'
ENGINE: 'xmodule.modulestore.mongo.DraftMongoModuleStore' ENGINE: 'xmodule.modulestore.mongo.DraftMongoModuleStore'
DOC_STORE_CONFIG: "{{ edxapp_lms_draft_doc_store_config }}" DOC_STORE_CONFIG: "{{ EDXAPP_LMS_DRAFT_DOC_STORE_CONFIG }}"
OPTIONS: OPTIONS:
default_class: 'xmodule.hidden_module.HiddenDescriptor' default_class: 'xmodule.hidden_module.HiddenDescriptor'
fs_root: "{{ edxapp_course_data_dir }}" fs_root: "{{ edxapp_course_data_dir }}"
...@@ -859,14 +844,14 @@ cms_auth_config: ...@@ -859,14 +844,14 @@ cms_auth_config:
stores: stores:
- NAME: 'split' - NAME: 'split'
ENGINE: 'xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore' ENGINE: 'xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore'
DOC_STORE_CONFIG: "{{ edxapp_cms_doc_store_config }}" DOC_STORE_CONFIG: "{{ EDXAPP_CMS_DOC_STORE_CONFIG }}"
OPTIONS: OPTIONS:
default_class: 'xmodule.hidden_module.HiddenDescriptor' default_class: 'xmodule.hidden_module.HiddenDescriptor'
fs_root: "{{ edxapp_course_data_dir }}" fs_root: "{{ edxapp_course_data_dir }}"
render_template: 'edxmako.shortcuts.render_to_string' render_template: 'edxmako.shortcuts.render_to_string'
- NAME: 'draft' - NAME: 'draft'
ENGINE: 'xmodule.modulestore.mongo.DraftMongoModuleStore' ENGINE: 'xmodule.modulestore.mongo.DraftMongoModuleStore'
DOC_STORE_CONFIG: "{{ edxapp_cms_doc_store_config }}" DOC_STORE_CONFIG: "{{ EDXAPP_CMS_DOC_STORE_CONFIG }}"
OPTIONS: OPTIONS:
default_class: 'xmodule.hidden_module.HiddenDescriptor' default_class: 'xmodule.hidden_module.HiddenDescriptor'
fs_root: "{{ edxapp_course_data_dir }}" fs_root: "{{ edxapp_course_data_dir }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment