Commit 1fbc5a38 by Feanil Patel

Work in progress.

parent 9656a273
--- ---
- hosts: tag_aws_cloudformation_stack-name_dev2:&tag_group_bastion
sudo: True
vars_files:
- "{{ secure_dir }}/vars/dev/dev2.yml"
- "{{ secure_dir }}/vars/dev/common.yml"
- "{{ secure_dir }}/vars/common/common.yml"
- "{{ secure_dir }}/vars/users.yml"
roles:
- common
- hosts: tag_aws_cloudformation_stack-name_dev2:&tag_group_edxapp - hosts: tag_aws_cloudformation_stack-name_dev2:&tag_group_edxapp
sudo: True sudo: True
vars_files: vars_files:
......
...@@ -15,26 +15,62 @@ PREVIEW_LMS_BASE: '' ...@@ -15,26 +15,62 @@ PREVIEW_LMS_BASE: ''
CMS_BASE: '' CMS_BASE: ''
AWS_ACCESS_KEY_ID: '' AWS_ACCESS_KEY_ID: ''
AWS_SECRET_ACCESS_KEY: '' AWS_SECRET_ACCESS_KEY: ''
XQUEUE_BASIC_AUTH: [ 'edx', 'edx' ]
XQUEUE_DJANGO_AUTH:
username: 'lms'
password: 'password'
MONGO_HOST: ['localhost']
MONGO_PASSWORD: 'password'
MONGO_PORT: 27017
MONGO_USER: 'mongo'
MYSQL_DB_NAME: 'edxapp'
MYSQL_USER: 'root'
MYSQL_PASSWORD: ''
MYSQL_HOST: 'localhost'
MYSQL_PORT: '3306'
EMAIL_BACKEND: 'django.core.mail.backends.smtp.EmailBackend'
LOG_LEVEL: 'INFO'
MEMCACHE: [ 'localhost:11211' ]
COMMENTS_SERVICE_URL: 'http://localhost:4567'
COMMENTS_SERVICE_KEY: 'password'
EDXAPP_SECRET_KEY: ''
PEARSON_TEST_PASWORD: ''
OEE_URL: 'http://localhost:18091/'
OEE_USER: 'lms'
OEE_PASSWORD: 'password'
ANALYTICS_API_KEY: ''
ZENDESK_USER: ''
ZENDESK_API_KEY: ''
CELERY_USER: 'celery'
CELERY_PASSWORD: ''
#Use YAML references (& and *) and hash merge <<: to factor out shared settings #Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ #see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
edxapp_generic_auth_config: &edxapp_generic_auth edxapp_generic_auth_config: &edxapp_generic_auth
'AWS_ACCESS_KEY_ID': "{{AWS_ACCESS_KEY_ID}}" 'AWS_ACCESS_KEY_ID': "{{AWS_ACCESS_KEY_ID}}"
'AWS_SECRET_ACCESS_KEY': "{{AWS_SECRET_ACCESS_KEY}}" 'AWS_SECRET_ACCESS_KEY': "{{AWS_SECRET_ACCESS_KEY}}"
'SECRET_KEY': '' 'SECRET_KEY': '{{EDXAPP_SECRET_KEY}}'
'XQUEUE_INTERFACE': 'XQUEUE_INTERFACE':
'basic_auth': [ 'edx', 'edx'] 'basic_auth': $XQUEUE_BASIC_AUTH
'django_auth': { 'password': 'password', 'django_auth': $XQUEUE_DJANGO_AUTH
'username': 'lms'} 'url': "{{XQUEUE_URL}}"
'url': 'http://localhost:18040'
'CONTENTSTORE': 'CONTENTSTORE':
'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore' 'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore'
'OPTIONS': 'OPTIONS':
'db': 'edxapp' 'db': '{{MONGO_DB_NAME}}'
'host': [ 'localhost' ] 'host': $MONGO_HOSTS
'password': 'password' 'password': '{{MONGO_PASSWORD}}'
'port': 27017 'port': '{{MONGO_PORT}}'
'user': 'mongo' 'user': '{{MONGO_USER}}'
'MODULESTORE': 'MODULESTORE':
'default': 'default':
'ENGINE': 'xmodule.modulestore.mongo.DraftMongoModuleStore' 'ENGINE': 'xmodule.modulestore.mongo.DraftMongoModuleStore'
...@@ -43,45 +79,46 @@ edxapp_generic_auth_config: &edxapp_generic_auth ...@@ -43,45 +79,46 @@ edxapp_generic_auth_config: &edxapp_generic_auth
'db': 'edxapp' 'db': 'edxapp'
'default_class': 'xmodule.hidden_module.HiddenDescriptor' 'default_class': 'xmodule.hidden_module.HiddenDescriptor'
'fs_root': '/opt/wwc/data' 'fs_root': '/opt/wwc/data'
'host': [ 'localhost' ] 'host': $MONGO_HOSTS
'password': 'password' 'password': '{{MONGO_PASSWORD}}'
'port': 27017 'port': '{{MONGO_PORT}}'
'render_template': 'mitxmako.shortcuts.render_to_string' 'render_template': 'mitxmako.shortcuts.render_to_string'
'user': 'mongo' 'user': '{{MONGO_USER}}'
# Needed for the CMS to be able to run update_templates
'direct': 'direct':
'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore' 'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore'
'OPTIONS': *generic_modulestore_default_options 'OPTIONS': *generic_modulestore_default_options
'DATABASES': 'DATABASES':
'default': 'default':
'ENGINE': 'django.db.backends.mysql' 'ENGINE': 'django.db.backends.mysql'
'NAME': 'edxapp' 'NAME': '{{MYSQL_DB_NAME}}'
'USER': 'root' 'USER': '{{MYSQL_USER}}'
'PASSWORD': '' 'PASSWORD': '{{MYSQL_PASSWORD}}'
# Provide the name of a host running mysql. 'HOST': '{{MYSQL_HOST}}'
'HOST': 'localhost'
'PORT': '3306' 'PORT': '3306'
'PEARSON_TEST_PASSWORD': '' 'PEARSON_TEST_PASSWORD': '{{PEARSON_TEST_PASSWORD}}'
'OPEN_ENDED_GRADING_INTERFACE': 'OPEN_ENDED_GRADING_INTERFACE':
'url': 'http://localhost:18091/' 'url': '{{OEE_URL}}'
'password': 'password' 'password': '{{OEE_PASSWORD}}'
'peer_grading': 'peer_grading' 'peer_grading': 'peer_grading'
'staff_grading': 'staff_grading' 'staff_grading': 'staff_grading'
'grading_controller': 'grading_controller' 'grading_controller': 'grading_controller'
'username': 'lms' 'username': '{{OEE_USER}}'
'ANALYTICS_API_KEY': '' 'ANALYTICS_API_KEY': '{{ANALYTICS_API_KEY}}'
'ZENDESK_USER': '' 'ZENDESK_USER': '{{ZENDESK_USER}}'
'ZENDESK_API_KEY': '' 'ZENDESK_API_KEY': '{{ZENDESK_API_KEY}}'
'CELERY_BROKER_USER': 'celery' 'CELERY_BROKER_USER': '{{CELERY_USER}}'
'CELERY_BROKER_PASSWORD': '' 'CELERY_BROKER_PASSWORD': '{{CELERY_PASSWORD}}'
'BOOK_URL': ''
generic_env_config: &edxapp_generic_env generic_env_config: &edxapp_generic_env
'LMS_BASE': "{{LMS_BASE}}" 'LMS_BASE': "{{LMS_BASE}}"
'CMS_BASE': "{{CMS_BASE}}" 'CMS_BASE': "{{CMS_BASE}}"
'BOOK_URL': '' 'BOOK_URL': '{{BOOK_URL}}'
'CERT_QUEUE': 'certificates' 'CERT_QUEUE': 'certificates'
'LOCAL_LOGLEVEL': 'INFO' 'LOCAL_LOGLEVEL': '{{LOG_LEVEL}}'
# default email backed set to local SMTP # default email backed set to local SMTP
'EMAIL_BACKEND': 'django.core.mail.backends.smtp.EmailBackend' 'EMAIL_BACKEND': '{{EMAIL_BACKEND}}'
'MITX_FEATURES': 'MITX_FEATURES':
'AUTH_USE_OPENID_PROVIDER': true 'AUTH_USE_OPENID_PROVIDER': true
'CERTIFICATES_ENABLED': true 'CERTIFICATES_ENABLED': true
...@@ -104,7 +141,7 @@ generic_env_config: &edxapp_generic_env ...@@ -104,7 +141,7 @@ generic_env_config: &edxapp_generic_env
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache' 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'KEY_FUNCTION': 'util.memcache.safe_key' 'KEY_FUNCTION': 'util.memcache.safe_key'
'KEY_PREFIX': 'sandbox_default' 'KEY_PREFIX': 'sandbox_default'
'LOCATION': [ 'localhost:11211' ] 'LOCATION': $MEMCACHE
'general': 'general':
<<: *default_generic_cache <<: *default_generic_cache
'KEY_PREFIX': 'sandbox_general' 'KEY_PREFIX': 'sandbox_general'
...@@ -119,10 +156,10 @@ generic_env_config: &edxapp_generic_env ...@@ -119,10 +156,10 @@ generic_env_config: &edxapp_generic_env
'KEY_PREFIX': 'integration_celery' 'KEY_PREFIX': 'integration_celery'
'CELERY_BROKER_TRANSPORT': 'amqp' 'CELERY_BROKER_TRANSPORT': 'amqp'
'CELERY_BROKER_HOSTNAME': '' 'CELERY_BROKER_HOSTNAME': ''
'COMMENTS_SERVICE_URL': 'http://localhost:4567' 'COMMENTS_SERVICE_URL': '{{COMMENTS_SERVICE_URL}}'
'LOGGING_ENV': 'sandbox' 'LOGGING_ENV': 'sandbox'
'SESSION_COOKIE_DOMAIN': !!null 'SESSION_COOKIE_DOMAIN': !!null
'COMMENTS_SERVICE_KEY': 'password' 'COMMENTS_SERVICE_KEY': '{{COMMENTS_SERVICE_KEY}}'
'SEGMENT_IO_LMS': true 'SEGMENT_IO_LMS': true
'CODE_JAIL': 'CODE_JAIL':
'limits': 'limits':
......
# Variables for the xserver. # Variables for the xserver.
--- ---
RABBIT_ERLANG_COOKIE: 'DEFAULT_COOKIE'
RABBIT_USERS:
- name: 'default'
password: 'default'
xserver_env_config: {} xserver_env_config:
erlang_cookie: "{{RABBIT_ERLANG_COOKIE}}"
admins: $RABBIT_USERS
xserver_git_identity_path: "{{ secure_dir }}/files/git-identity" xserver_git_identity_path: "{{ secure_dir }}/files/git-identity"
xserver_code_dir: "{{ app_base_dir }}/xserver" xserver_code_dir: "{{ app_base_dir }}/xserver"
xserver_source_repo: "git://github.com/edx/xserver.git" xserver_source_repo: "git://github.com/edx/xserver.git"
......
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