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
2094cef0
Commit
2094cef0
authored
Jan 18, 2017
by
Jillian Vogel
Committed by
GitHub
Jan 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3601 from open-craft/jill/edxapp-settings
Adds COMMON_EDXAPP_SETTINGS
parents
500dea40
c2a5bc67
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
15 deletions
+20
-15
AUTHORS
+1
-0
CHANGELOG.md
+1
-0
playbooks/roles/common_vars/defaults/main.yml
+3
-0
playbooks/roles/demo/defaults/main.yml
+1
-0
playbooks/roles/demo/tasks/deploy.yml
+6
-6
playbooks/roles/edxapp/defaults/main.yml
+3
-2
playbooks/roles/gitreload/defaults/main.yml
+1
-3
playbooks/roles/gitreload/tasks/course_pull.yml
+1
-1
playbooks/roles/oauth_client_setup/tasks/main.yml
+1
-1
playbooks/roles/testcourses/tasks/deploy.yml
+2
-2
No files found.
AUTHORS
View file @
2094cef0
...
@@ -54,3 +54,4 @@ David Adams<dcadams@stanford.edu>
...
@@ -54,3 +54,4 @@ David Adams<dcadams@stanford.edu>
Florian Haas <florian@hastexo.com>
Florian Haas <florian@hastexo.com>
Shohei Maeda <s.maeda@gacco.co.jp>
Shohei Maeda <s.maeda@gacco.co.jp>
Bill DeRusha <bill@edx.org>
Bill DeRusha <bill@edx.org>
Jillian Vogel <jill@opencraft.com>
CHANGELOG.md
View file @
2094cef0
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
-
Renamed
`COMMON_AWS_SYNC_BUCKET`
to
`COMMON_OBJECT_STORE_LOG_SYNC_BUCKET`
-
Renamed
`COMMON_AWS_SYNC_BUCKET`
to
`COMMON_OBJECT_STORE_LOG_SYNC_BUCKET`
-
Renamed
`COMMON_AWS_S3_SYNC_SCRIPT`
to
`COMMON_OBJECT_STORE_LOG_SYNC_SCRIPT`
-
Renamed
`COMMON_AWS_S3_SYNC_SCRIPT`
to
`COMMON_OBJECT_STORE_LOG_SYNC_SCRIPT`
-
Added
`COMMON_OBJECT_STORE_LOG_SYNC_PREFIX`
. Default:
`logs/tracking/`
-
Added
`COMMON_OBJECT_STORE_LOG_SYNC_PREFIX`
. Default:
`logs/tracking/`
-
Added
`COMMON_EDXAPP_SETTINGS`
. Default:
`aws`
-
Role: aws
-
Role: aws
-
Removed
`AWS_S3_LOGS`
-
Removed
`AWS_S3_LOGS`
-
Added
`vhost`
role as dependency
-
Added
`vhost`
role as dependency
...
...
playbooks/roles/common_vars/defaults/main.yml
View file @
2094cef0
...
@@ -11,6 +11,9 @@ COMMON_BASIC_AUTH_EXCEPTIONS:
...
@@ -11,6 +11,9 @@ COMMON_BASIC_AUTH_EXCEPTIONS:
-
192.168.0.0/16
-
192.168.0.0/16
-
172.16.0.0/12
-
172.16.0.0/12
# Settings to use for calls to edxapp manage.py
COMMON_EDXAPP_SETTINGS
:
'
aws'
# Turn on syncing logs on rotation for edx
# Turn on syncing logs on rotation for edx
# application and tracking logs, must also
# application and tracking logs, must also
# have the aws or openstack role installed
# have the aws or openstack role installed
...
...
playbooks/roles/demo/defaults/main.yml
View file @
2094cef0
...
@@ -34,6 +34,7 @@ demo_test_users:
...
@@ -34,6 +34,7 @@ demo_test_users:
hashed_password
:
"
{{
demo_hashed_password
}}"
hashed_password
:
"
{{
demo_hashed_password
}}"
demo_edxapp_user
:
'
edxapp'
demo_edxapp_user
:
'
edxapp'
demo_edxapp_settings
:
'
{{
COMMON_EDXAPP_SETTINGS
}}'
demo_edxapp_venv_bin
:
'
{{
COMMON_APP_DIR
}}/{{
demo_edxapp_user
}}/venvs/{{demo_edxapp_user}}/bin'
demo_edxapp_venv_bin
:
'
{{
COMMON_APP_DIR
}}/{{
demo_edxapp_user
}}/venvs/{{demo_edxapp_user}}/bin'
demo_edxapp_course_data_dir
:
'
{{
COMMON_DATA_DIR
}}/{{
demo_edxapp_user
}}/data'
demo_edxapp_course_data_dir
:
'
{{
COMMON_DATA_DIR
}}/{{
demo_edxapp_user
}}/data'
demo_edxapp_code_dir
:
'
{{
COMMON_APP_DIR
}}/{{
demo_edxapp_user
}}/edx-platform'
demo_edxapp_code_dir
:
'
{{
COMMON_APP_DIR
}}/{{
demo_edxapp_user
}}/edx-platform'
playbooks/roles/demo/tasks/deploy.yml
View file @
2094cef0
...
@@ -10,14 +10,14 @@
...
@@ -10,14 +10,14 @@
register
:
demo_checkout
register
:
demo_checkout
-
name
:
import demo course
-
name
:
import demo course
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
cms
--settings=
aws
import
{{
demo_edxapp_course_data_dir
}}
{{
demo_code_dir
}}"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
cms
--settings=
{{
demo_edxapp_settings
}}
import
{{
demo_edxapp_course_data_dir
}}
{{
demo_code_dir
}}"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
become_user
:
"
{{
common_web_user
}}"
become_user
:
"
{{
common_web_user
}}"
when
:
demo_checkout.changed
when
:
demo_checkout.changed
-
name
:
create some test users
-
name
:
create some test users
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
aws
--service-variant
lms
manage_user
{{
item.username}}
{{
item.email
}}
--initial-password-hash
{{
item.hashed_password
|
quote
}}"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
{{
demo_edxapp_settings
}}
--service-variant
lms
manage_user
{{
item.username}}
{{
item.email
}}
--initial-password-hash
{{
item.hashed_password
|
quote
}}"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
become_user
:
"
{{
common_web_user
}}"
become_user
:
"
{{
common_web_user
}}"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
when
:
demo_checkout.changed
when
:
demo_checkout.changed
-
name
:
create staff user
-
name
:
create staff user
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
aws
--service-variant
lms
manage_user
staff
staff@example.com
--initial-password-hash
{{
demo_hashed_password
|
quote
}}
--staff"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
{{
demo_edxapp_settings
}}
--service-variant
lms
manage_user
staff
staff@example.com
--initial-password-hash
{{
demo_hashed_password
|
quote
}}
--staff"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
become_user
:
"
{{
common_web_user
}}"
become_user
:
"
{{
common_web_user
}}"
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
-
DEMO_CREATE_STAFF_USER
-
DEMO_CREATE_STAFF_USER
-
name
:
enroll test users in the demo course
-
name
:
enroll test users in the demo course
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
aws
--service-variant
lms
enroll_user_in_course
-e
{{
item.email
}}
-c
{{
demo_course_id
}}"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
{{
demo_edxapp_settings
}}
--service-variant
lms
enroll_user_in_course
-e
{{
item.email
}}
-c
{{
demo_course_id
}}"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
become_user
:
"
{{
common_web_user
}}"
become_user
:
"
{{
common_web_user
}}"
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
-
name
:
add test users to the certificate whitelist
-
name
:
add test users to the certificate whitelist
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
aws
--service-variant
lms
cert_whitelist
-a
{{
item.email
}}
-c
{{
demo_course_id
}}"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
{{
demo_edxapp_settings
}}
--service-variant
lms
cert_whitelist
-a
{{
item.email
}}
-c
{{
demo_course_id
}}"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
with_items
:
"
{{
demo_test_users
}}"
with_items
:
"
{{
demo_test_users
}}"
when
:
demo_checkout.changed
when
:
demo_checkout.changed
-
name
:
seed the forums for the demo course
-
name
:
seed the forums for the demo course
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
aws
seed_permissions_roles
{{
demo_course_id
}}"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
{{
demo_edxapp_settings
}}
seed_permissions_roles
{{
demo_course_id
}}"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
with_items
:
"
{{
demo_test_users
}}"
with_items
:
"
{{
demo_test_users
}}"
...
...
playbooks/roles/edxapp/defaults/main.yml
View file @
2094cef0
...
@@ -97,7 +97,7 @@ EDXAPP_ELASTIC_SEARCH_CONFIG:
...
@@ -97,7 +97,7 @@ EDXAPP_ELASTIC_SEARCH_CONFIG:
-
host
:
"
localhost"
-
host
:
"
localhost"
port
:
9200
port
:
9200
EDXAPP_SETTINGS
:
'
aws
'
EDXAPP_SETTINGS
:
'
{{
COMMON_EDXAPP_SETTINGS
}}
'
EDXAPP_LMS_ENV
:
'
lms.envs.{{
EDXAPP_SETTINGS
}}'
EDXAPP_LMS_ENV
:
'
lms.envs.{{
EDXAPP_SETTINGS
}}'
EDXAPP_CMS_ENV
:
'
cms.envs.{{
EDXAPP_SETTINGS
}}'
EDXAPP_CMS_ENV
:
'
cms.envs.{{
EDXAPP_SETTINGS
}}'
...
@@ -368,7 +368,7 @@ EDXAPP_SANDBOX_ENFORCE: true
...
@@ -368,7 +368,7 @@ EDXAPP_SANDBOX_ENFORCE: true
EDXAPP_AUTOMATED_USERS
:
EDXAPP_AUTOMATED_USERS
:
automated_user
:
automated_user
:
sudo_commands
:
sudo_commands
:
-
command
:
"
{{
edxapp_venv_bin
}}/python
{{
edxapp_code_dir
}}/manage.py
lms
migrate
--list
--settings=
aws
"
-
command
:
"
{{
edxapp_venv_bin
}}/python
{{
edxapp_code_dir
}}/manage.py
lms
migrate
--list
--settings=
{{
edxapp_settings
}}
"
sudo_user
:
"
edxapp"
sudo_user
:
"
edxapp"
authorized_keys
:
authorized_keys
:
-
"
SSH
authorized
key"
-
"
SSH
authorized
key"
...
@@ -642,6 +642,7 @@ edxapp_venv_dir: "{{ edxapp_venvs_dir }}/edxapp"
...
@@ -642,6 +642,7 @@ edxapp_venv_dir: "{{ edxapp_venvs_dir }}/edxapp"
edxapp_venv_bin
:
"
{{
edxapp_venv_dir
}}/bin"
edxapp_venv_bin
:
"
{{
edxapp_venv_dir
}}/bin"
edxapp_nodeenv_dir
:
"
{{
edxapp_app_dir
}}/nodeenvs/edxapp"
edxapp_nodeenv_dir
:
"
{{
edxapp_app_dir
}}/nodeenvs/edxapp"
edxapp_nodeenv_bin
:
"
{{
edxapp_nodeenv_dir
}}/bin"
edxapp_nodeenv_bin
:
"
{{
edxapp_nodeenv_dir
}}/bin"
edxapp_settings
:
'
{{
EDXAPP_SETTINGS
}}'
edxapp_node_version
:
"
6.9.2"
edxapp_node_version
:
"
6.9.2"
# This is where node installs modules, not node itself
# This is where node installs modules, not node itself
edxapp_node_bin
:
"
{{
edxapp_code_dir
}}/node_modules/.bin"
edxapp_node_bin
:
"
{{
edxapp_code_dir
}}/node_modules/.bin"
...
...
playbooks/roles/gitreload/defaults/main.yml
View file @
2094cef0
...
@@ -36,12 +36,10 @@ gitreload_venv_bin: "{{ gitreload_venv }}/bin"
...
@@ -36,12 +36,10 @@ gitreload_venv_bin: "{{ gitreload_venv }}/bin"
gitreload_gunicorn_workers
:
1
gitreload_gunicorn_workers
:
1
gitreload_gunicorn_host
:
"
127.0.0.1"
gitreload_gunicorn_host
:
"
127.0.0.1"
gitreload_edxapp_django_settings
:
"
aws"
gitreload_env
:
gitreload_env
:
REPODIR
:
"
{{
GITRELOAD_REPODIR
}}"
REPODIR
:
"
{{
GITRELOAD_REPODIR
}}"
LOG_LEVEL
:
"
{{
GITRELOAD_LOG_LEVEL
}}"
LOG_LEVEL
:
"
{{
GITRELOAD_LOG_LEVEL
}}"
NUM_THREADS
:
"
{{
GITRELOAD_NUM_THREADS
}}"
NUM_THREADS
:
"
{{
GITRELOAD_NUM_THREADS
}}"
VIRTUAL_ENV
:
"
{{
edxapp_venv_dir
}}"
VIRTUAL_ENV
:
"
{{
edxapp_venv_dir
}}"
EDX_PLATFORM
:
"
{{
edxapp_code_dir
}}"
EDX_PLATFORM
:
"
{{
edxapp_code_dir
}}"
DJANGO_SETTINGS
:
"
{{
gitreload_edxapp_django
_settings
}}"
DJANGO_SETTINGS
:
"
{{
edxapp
_settings
}}"
playbooks/roles/gitreload/tasks/course_pull.yml
View file @
2094cef0
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
with_items
:
"
{{
GITRELOAD_REPOS
}}"
with_items
:
"
{{
GITRELOAD_REPOS
}}"
-
name
:
do import of courses
-
name
:
do import of courses
shell
:
"
SERVICE_VARIANT=lms
{{
edxapp_venv_bin
}}/python
manage.py
lms
--settings=
aws
git_add_course
{{
item.url
}}
{{
GITRELOAD_REPODIR
}}/{{
item.name
}}"
shell
:
"
SERVICE_VARIANT=lms
{{
edxapp_venv_bin
}}/python
manage.py
lms
--settings=
{{
edxapp_settings
}}
git_add_course
{{
item.url
}}
{{
GITRELOAD_REPODIR
}}/{{
item.name
}}"
args
:
args
:
executable
:
"
/bin/bash"
executable
:
"
/bin/bash"
chdir
:
"
{{
edxapp_code_dir
}}"
chdir
:
"
{{
edxapp_code_dir
}}"
...
...
playbooks/roles/oauth_client_setup/tasks/main.yml
View file @
2094cef0
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
-
name
:
create OAuth2 Clients
-
name
:
create OAuth2 Clients
shell
:
>
shell
:
>
{{ COMMON_BIN_DIR }}/python.edxapp {{ COMMON_BIN_DIR }}/manage.edxapp lms --settings=
aws
{{ COMMON_BIN_DIR }}/python.edxapp {{ COMMON_BIN_DIR }}/manage.edxapp lms --settings=
{{ COMMON_EDXAPP_SETTINGS }}
create_oauth2_client
create_oauth2_client
{{ item.url_root }}
{{ item.url_root }}
"{{ item.url_root }}/complete/edx-oidc/"
"{{ item.url_root }}/complete/edx-oidc/"
...
...
playbooks/roles/testcourses/tasks/deploy.yml
View file @
2094cef0
---
---
-
name
:
import the test courses from github
-
name
:
import the test courses from github
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
/edx/bin/manage.edxapp
lms
git_add_course
--settings=
aws
\"
{{
item.github_url
}}
\"
"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
/edx/bin/manage.edxapp
lms
git_add_course
--settings=
{{
demo_edxapp_settings
}}
\"
{{
item.github_url
}}
\"
"
become_user
:
"
{{
common_web_user
}}"
become_user
:
"
{{
common_web_user
}}"
when
:
item.install == True
when
:
item.install == True
with_items
:
"
{{
TESTCOURSES_EXPORTS
}}"
with_items
:
"
{{
TESTCOURSES_EXPORTS
}}"
-
name
:
enroll test users in the testcourses
-
name
:
enroll test users in the testcourses
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
aws
--service-variant
lms
enroll_user_in_course
-e
{{
item[0].email
}}
-c
{{
item[1].course_id
}}"
shell
:
"
{{
demo_edxapp_venv_bin
}}/python
./manage.py
lms
--settings=
{{
demo_edxapp_settings
}}
--service-variant
lms
enroll_user_in_course
-e
{{
item[0].email
}}
-c
{{
item[1].course_id
}}"
args
:
args
:
chdir
:
"
{{
demo_edxapp_code_dir
}}"
chdir
:
"
{{
demo_edxapp_code_dir
}}"
become_user
:
"
{{
common_web_user
}}"
become_user
:
"
{{
common_web_user
}}"
...
...
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