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
b2ba874e
Commit
b2ba874e
authored
May 09, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMS role
parent
362e0a68
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
84 additions
and
10 deletions
+84
-10
playbooks/edxapp_prod.yml
+2
-1
playbooks/roles/cms/tasks/main.yml
+6
-8
playbooks/roles/gunicorn/templates/cms.conf.j2
+1
-1
playbooks/roles/nginx/tasks/nginx_site.yml
+2
-0
playbooks/secure_example/vars/edxapp_prod_vars.yml
+73
-0
No files found.
playbooks/edxapp_prod.yml
View file @
b2ba874e
-
hosts
:
tag_Group_edxapp_prod
-
hosts
:
security_group_edx-prod-EdxappServerSecurityGroup-NSKCQTMZIPQB
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/edxapp_prod_vars.yml"
...
...
@@ -9,6 +9,7 @@
-
nginx
-
gunicorn
-
lms
-
cms
-
ruby
-
npm
# run this role last
...
...
playbooks/roles/cms/tasks/main.yml
View file @
b2ba874e
...
...
@@ -4,22 +4,20 @@
# - nginx/tasks/main.yml
---
-
name
:
create cms application config
template
:
src=env.json.j2 dest=$app_base_dir/cms.env.json
template
:
src=env.json.j2 dest=$app_base_dir/cms.env.json
mode=644
tags
:
-
cms-env
-
cms
-
name
:
create cms auth file
template
:
src=auth.json.j2 dest=$app_base_dir/cms.auth.json
template
:
src=auth.json.j2 dest=$app_base_dir/cms.auth.json
mode=644
tags
:
-
cms-env
-
cms
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=cms
tags
:
-
cms
-
cms-env
-
include
:
../../nginx/tasks/nginx_site.yml state=link site_name=cms-backend
tags
:
-
cms
-
cms-env
# Creates LMS upstart file
-
include
:
../../gunicorn/tasks/upstart.yml service_variant=cms
playbooks/roles/gunicorn/templates/cms.conf.j2
View file @
b2ba874e
...
...
@@ -22,4 +22,4 @@ env SERVICE_VARIANT="cms"
chdir ${app_base_dir}/mitx
setuid www-data
exec
run-program
${venv_dir}/bin/gunicorn_django -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath=${app_base_dir}/mitx --settings=cms.envs.aws
exec ${venv_dir}/bin/gunicorn_django -b 127.0.0.1:$PORT -w $WORKERS --timeout=300 --pythonpath=${app_base_dir}/mitx --settings=cms.envs.aws
playbooks/roles/nginx/tasks/nginx_site.yml
View file @
b2ba874e
...
...
@@ -10,6 +10,7 @@
tags
:
-
nginx
-
lms
-
cms
-
nginx-env
-
name
:
Creating nginx config link {{ site_name }}
...
...
@@ -18,4 +19,5 @@
tags
:
-
nginx
-
lms
-
cms
-
nginx-env
playbooks/secure_example/vars/edxapp_prod_vars.yml
View file @
b2ba874e
...
...
@@ -72,3 +72,76 @@ lms_env_config:
'
LOGGING_ENV'
:
'
hidden-prod'
'
SESSION_COOKIE_DOMAIN'
:
'
hidden-prod'
'
COMMENTS_SERVICE_KEY'
:
'
hidden-prod'
cms_auth_config
:
'
AWS_ACCESS_KEY_ID'
:
'
hidden-prod'
'
AWS_SECRET_ACCESS_KEY'
:
'
hidden-prod'
'
CONTENTSTORE'
:
'
OPTIONS'
:
'
db'
:
'
hidden-prod'
'
host'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
password'
:
'
hidden-prod'
'
port'
:
0000
'
user'
:
'
hidden-prod'
'
DATABASES'
:
'
default'
:
{
'
ENGINE'
:
'
hidden-prod'
,
'
HOST'
:
'
hidden-prod'
,
'
NAME'
:
'
hidden-prod'
,
'
PASSWORD'
:
'
hidden-prod'
,
'
PORT'
:
0000
,
'
USER'
:
'
hidden-prod'
}
'
MODULESTORE'
:
'
default'
:
'
ENGINE'
:
'
xmodule.modulestore.mongo.DraftMongoModuleStore'
'
OPTIONS'
:
'
collection'
:
'
hidden-prod'
'
db'
:
'
hidden-prod'
'
default_class'
:
'
hidden-prod'
'
fs_root'
:
'
hidden-prod'
'
host'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
password'
:
'
hidden-prod'
'
port'
:
0000
'
render_template'
:
'
hidden-prod'
'
user'
:
'
hidden-prod'
'
direct'
:
'
ENGINE'
:
'
xmodule.modulestore.mongo.MongoModuleStore'
'
OPTIONS'
:
'
collection'
:
'
hidden-prod'
'
db'
:
'
hidden-prod'
'
default_class'
:
'
hidden-prod'
'
fs_root'
:
'
hidden-prod'
'
host'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
password'
:
'
hidden-prod'
'
port'
:
0000
'
render_template'
:
'
hidden-prod'
'
user'
:
'
hidden-prod'
'
SECRET_KEY'
:
'
hidden-prod'
cms_env_config
:
'
CACHES'
:
'
default'
:
'
KEY_PREFIX'
:
'
hidden-prod'
'
LOCATION'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
general'
:
'
KEY_PREFIX'
:
'
hidden-prod'
'
LOCATION'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
mongo_metadata_inheritance'
:
'
KEY_PREFIX'
:
'
hidden-prod'
'
LOCATION'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
staticfiles'
:
'
KEY_PREFIX'
:
'
hidden-prod'
'
LOCATION'
:
[
'
hidden-prod'
,
'
hidden-prod'
]
'
LOG_DIR'
:
'
hidden-prod'
'
LOGGING_ENV'
:
'
hidden-prod'
'
SITE_NAME'
:
'
hidden-prod'
'
SYSLOG_SERVER'
:
'
hidden-prod'
'
LMS_BASE'
:
'
hidden-prod'
'
SESSION_COOKIE_DOMAIN'
:
'
hidden-prod'
'
SEGMENT_IO_KEY'
:
'
hidden-prod'
'
MITX_FEATURES'
:
'
DISABLE_COURSE_CREATION'
:
false
'
SEGMENT_IO'
:
false
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