Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
fed04e57
Commit
fed04e57
authored
9 years ago
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2055 from edx/feanil/update_docstore_config
Pull out docstore config and move modulestore config.
parents
8a0e166c
0e742c5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
39 deletions
+61
-39
playbooks/roles/edxapp/defaults/main.yml
+61
-39
No files found.
playbooks/roles/edxapp/defaults/main.yml
View file @
fed04e57
...
...
@@ -566,6 +566,26 @@ edxapp_environment:
# yaml based configs is complete
CONFIG_ROOT
:
"
{{
edxapp_app_dir
}}"
EDXAPP_LMS_MONGO_READ_PREFERENCE
:
'
PRIMARY'
EDXAPP_CMS_MONGO_READ_PREFERENCE
:
'
PRIMARY'
edxapp_generic_doc_store_config
:
&edxapp_generic_default_docstore
db
:
"
{{
EDXAPP_MONGO_DB_NAME
}}"
host
:
"
{{
EDXAPP_MONGO_HOSTS
}}"
password
:
"
{{
EDXAPP_MONGO_PASSWORD
}}"
port
:
"
{{
EDXAPP_MONGO_PORT
}}"
user
:
"
{{
EDXAPP_MONGO_USER
}}"
collection
:
'
modulestore'
ssl
:
"
{{
EDXAPP_MONGO_USE_SSL
}}"
edxapp_lms_doc_store_config
:
<<
:
*edxapp_generic_default_docstore
read_preference
:
"
{{
EDXAPP_LMS_MONGO_READ_PREFERENCE
}}"
edxapp_cms_doc_store_config
:
<<
:
*edxapp_generic_default_docstore
read_preference
:
"
{{
EDXAPP_CMS_MONGO_READ_PREFERENCE
}}"
edxapp_generic_auth_config
:
&edxapp_generic_auth
EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST
:
"
{{
EDXAPP_EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST
}}"
ECOMMERCE_API_SIGNING_KEY
:
"
{{
EDXAPP_ECOMMERCE_API_SIGNING_KEY
}}"
...
...
@@ -577,14 +597,6 @@ edxapp_generic_auth_config: &edxapp_generic_auth
basic_auth
:
"
{{
EDXAPP_XQUEUE_BASIC_AUTH
}}"
django_auth
:
"
{{
EDXAPP_XQUEUE_DJANGO_AUTH
}}"
url
:
"
{{
EDXAPP_XQUEUE_URL
}}"
DOC_STORE_CONFIG
:
&edxapp_generic_default_docstore
db
:
"
{{
EDXAPP_MONGO_DB_NAME
}}"
host
:
"
{{
EDXAPP_MONGO_HOSTS
}}"
password
:
"
{{
EDXAPP_MONGO_PASSWORD
}}"
port
:
"
{{
EDXAPP_MONGO_PORT
}}"
user
:
"
{{
EDXAPP_MONGO_USER
}}"
collection
:
'
modulestore'
ssl
:
"
{{
EDXAPP_MONGO_USE_SSL
}}"
CONTENTSTORE
:
ENGINE
:
'
xmodule.contentstore.mongo.MongoContentStore'
#
...
...
@@ -600,35 +612,6 @@ edxapp_generic_auth_config: &edxapp_generic_auth
ssl
:
"
{{
EDXAPP_MONGO_USE_SSL
}}"
ADDITIONAL_OPTIONS
:
"
{{
EDXAPP_CONTENTSTORE_ADDITIONAL_OPTS
}}"
DOC_STORE_CONFIG
:
*edxapp_generic_default_docstore
MODULESTORE
:
default
:
ENGINE
:
'
xmodule.modulestore.mixed.MixedModuleStore'
OPTIONS
:
mappings
:
"
{{
EDXAPP_XML_MAPPINGS
}}"
stores
:
-
&edxapp_generic_split_modulestore
NAME
:
'
split'
ENGINE
:
'
xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore'
DOC_STORE_CONFIG
:
*edxapp_generic_default_docstore
OPTIONS
:
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
-
&edxapp_generic_draft_modulestore
NAME
:
'
draft'
ENGINE
:
'
xmodule.modulestore.mongo.DraftMongoModuleStore'
DOC_STORE_CONFIG
:
*edxapp_generic_default_docstore
OPTIONS
:
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
-
&edxapp_generic_xml_modulestore
NAME
:
'
xml'
ENGINE
:
'
xmodule.modulestore.xml.XMLModuleStore'
OPTIONS
:
data_dir
:
"
{{
edxapp_course_data_dir
}}"
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
DATABASES
:
read_replica
:
ENGINE
:
'
django.db.backends.mysql'
...
...
@@ -797,6 +780,32 @@ lms_auth_config:
CC_PROCESSOR
:
"
{{
EDXAPP_CC_PROCESSOR
}}"
TRACKING_SEGMENTIO_WEBHOOK_SECRET
:
"
{{
EDXAPP_TRACKING_SEGMENTIO_WEBHOOK_SECRET
}}"
PROFILE_IMAGE_SECRET_KEY
:
"
{{
EDXAPP_PROFILE_IMAGE_SECRET_KEY
}}"
MODULESTORE
:
default
:
ENGINE
:
'
xmodule.modulestore.mixed.MixedModuleStore'
OPTIONS
:
mappings
:
"
{{
EDXAPP_XML_MAPPINGS
}}"
stores
:
-
NAME
:
'
split'
ENGINE
:
'
xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore'
DOC_STORE_CONFIG
:
"
{{
edxapp_lms_doc_store_config
}}"
OPTIONS
:
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
-
NAME
:
'
draft'
ENGINE
:
'
xmodule.modulestore.mongo.DraftMongoModuleStore'
DOC_STORE_CONFIG
:
"
{{
edxapp_lms_doc_store_config
}}"
OPTIONS
:
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
-
NAME
:
'
xml'
ENGINE
:
'
xmodule.modulestore.xml.XMLModuleStore'
OPTIONS
:
data_dir
:
"
{{
edxapp_course_data_dir
}}"
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
lms_env_config
:
<<
:
*edxapp_generic_env
...
...
@@ -834,8 +843,21 @@ cms_auth_config:
# mappings: "{{ EDXAPP_XML_MAPPINGS }}"
mappings
:
{}
stores
:
-
*edxapp_generic_split_modulestore
-
*edxapp_generic_draft_modulestore
-
NAME
:
'
split'
ENGINE
:
'
xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore'
DOC_STORE_CONFIG
:
"
{{
edxapp_cms_doc_store_config
}}"
OPTIONS
:
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
-
NAME
:
'
draft'
ENGINE
:
'
xmodule.modulestore.mongo.DraftMongoModuleStore'
DOC_STORE_CONFIG
:
"
{{
edxapp_cms_doc_store_config
}}"
OPTIONS
:
default_class
:
'
xmodule.hidden_module.HiddenDescriptor'
fs_root
:
"
{{
edxapp_course_data_dir
}}"
render_template
:
'
edxmako.shortcuts.render_to_string'
# Commented for now so that it can be tested first: LMS-11258
# - *edxapp_generic_xml_modulestore
PARSE_KEYS
:
"
{{
EDXAPP_PARSE_KEYS
}}"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment