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
edx
configuration
Commits
eaa45694
Commit
eaa45694
authored
May 14, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepping lms-preview role for PR
parent
9e01fcdf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
6 deletions
+64
-6
playbooks/roles/gunicorn/templates/lms-preview.conf.j2
+37
-0
playbooks/roles/lms-preview/templates/auth.json.j2
+1
-1
playbooks/roles/lms-preview/templates/env.json.j2
+1
-1
playbooks/secure_example/vars/edxapp_prod_vars.yml
+25
-4
No files found.
playbooks/roles/gunicorn/templates/lms-preview.conf.j2
0 → 100644
View file @
eaa45694
# gunicorn
description "gunicorn server"
author "Calen Pennington <cpennington@mitx.mit.edu>"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 3 30
env PID=/var/tmp/lms.pid
#env NEW_RELIC_CONFIG_FILE=${app_base_dir}/newrelic.ini
#env NEWRELIC=${venv_dir}/bin/newrelic-admin
env WORKERS={{ ansible_processor_cores * 2 }}
env PORT=8020
env LANG=en_US.UTF-8
env DJANGO_SETTINGS_MODULE=lms.envs.aws
env SERVICE_VARIANT="lms-preview"
chdir ${app_base_dir}/mitx
setuid www-data
exec ${venv_dir}/bin/gunicorn --preload -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath=${app_base_dir}/mitx lms.wsgi
post-start script
while true
do
if $(curl -s -i localhost:$PORT/heartbeat | egrep -q '200 OK'); then
break;
else
sleep 1;
fi
done
end script
playbooks/roles/lms-preview/templates/auth.json.j2
View file @
eaa45694
{{ lms_auth_config | to_nice_json }}
{{ lms_
preview_
auth_config | to_nice_json }}
playbooks/roles/lms-preview/templates/env.json.j2
View file @
eaa45694
{{ lms_env_config | to_nice_json }}
{{ lms_
preview_
env_config | to_nice_json }}
playbooks/secure_example/vars/edxapp_prod_vars.yml
View file @
eaa45694
---
lms_auth_config
:
#Use YAML references (& and *) and hash merge <<: to factor out shared settings
#see http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
lms_auth_config
:
&lms_auth
'
ANALYTICS_API_KEY'
:
'
hidden-prod'
'
AWS_ACCESS_KEY_ID'
:
'
hidden-prod'
'
AWS_SECRET_ACCESS_KEY'
:
'
hidden-prod'
...
...
@@ -17,7 +19,7 @@ lms_auth_config:
'
USER'
:
'
hidden-prod'
}
'
MODULESTORE'
:
'
default'
:
'
OPTIONS'
:
'
OPTIONS'
:
&lms_modulestore_default_options
'
collection'
:
'
hidden-prod'
'
db'
:
'
hidden-prod'
'
default_class'
:
'
hidden-prod'
...
...
@@ -39,7 +41,7 @@ lms_auth_config:
'
username'
:
'
hidden-prod'
}
'
url'
:
'
hidden-prod'
lms_env_config
:
lms_env_config
:
&lms_env
'
SYSLOG_SERVER'
:
'
hidden-prod'
'
SITE_NAME'
:
'
hidden-prod'
'
LOG_DIR'
:
'
hidden-prod'
...
...
@@ -51,7 +53,7 @@ lms_env_config:
'
ADMINS'
:
-
[
'
name'
,
'
email'
]
'
TIME_ZONE'
:
'
America/New_York'
'
CACHES'
:
'
CACHES'
:
&lms_caches
'
default'
:
'
KEY_PREFIX'
:
'
hidden-prod'
'
LOCATION'
:
[
'
hidden-prod'
,
...
...
@@ -144,4 +146,23 @@ cms_env_config:
'
DISABLE_COURSE_CREATION'
:
false
'
SEGMENT_IO'
:
false
lms_preview_auth_config
:
<<
:
*lms_auth
'
MODULESTORE'
:
'
default'
:
'
ENGINE'
:
'
xmodule.modulestore.mongo.DraftMongoModuleStore'
'
OPTIONS'
:
*lms_modulestore_default_options
lms_preview_env_config
:
<<
:
*lms_env
'
SITE_NAME'
:
'
preview.class.stanford.edu'
'
COMMENTS_SERVICE_KEY'
:
false
'
CACHES'
:
<<
:
*lms_caches
'
general'
:
'
BACKEND'
:
'
django.core.cache.backends.memcached.MemcachedCache'
'
KEY_PREFIX'
:
'
preview.edx.org'
'
KEY_FUNCTION'
:
'
util.memcache.safe_key'
'
LOCATION'
:
[
'
vpc-974dbeff-cache.oyg26r.0001.usw1.cache.amazonaws.com:12345'
,
'
vpc-974dbeff-cache.oyg26r.0002.usw1.cache.amazonaws.com:12345'
]
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