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
0b9fbec6
Commit
0b9fbec6
authored
Feb 10, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add defaults independent of the edxapp role.
parent
f42016ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
playbooks/roles/demo/defaults/main.yml
+5
-0
playbooks/roles/demo/tasks/deploy.yml
+10
-10
No files found.
playbooks/roles/demo/defaults/main.yml
View file @
0b9fbec6
...
...
@@ -26,3 +26,8 @@ demo_test_users:
-
email
:
'
verified@example.com'
mode
:
verified
password
:
edx
demo_edxapp_user
:
'
edxapp'
demo_edxapp_venv_bin
:
'
{{COMMON_APP_DIR}}/{{demo_edxapp_user}}/venvs/bin'
demo_edxapp_course_data_dir
:
'
{{COMMON_DATA_DIR}}/{{demo_edxapp_user}}/data'
demo_edxapp_code_dir
:
'
{{COMMON_APP_DIR}}/{{demo_edxapp_user}}/edx-platform'
playbooks/roles/demo/tasks/deploy.yml
View file @
0b9fbec6
...
...
@@ -7,36 +7,36 @@
-
name
:
import demo course
shell
:
>
{{
edxapp_venv_bin }}/python ./manage.py cms --settings=aws import {{
edxapp_course_data_dir }} {{ demo_code_dir }}
chdir={{ edxapp_code_dir }}
{{
demo_edxapp_venv_bin }}/python ./manage.py cms --settings=aws import {{ demo_
edxapp_course_data_dir }} {{ demo_code_dir }}
chdir={{
demo_
edxapp_code_dir }}
sudo_user
:
"
{{
common_web_user
}}"
when
:
demo_checkout.changed
-
name
:
create some test users and enroll them in the course
shell
:
>
{{ edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms create_user -e {{ item.email }} -p {{ item.password }} -m {{ item.mode }} -c {{ demo_course_id }}
chdir={{ edxapp_code_dir }}
{{
demo_
edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms create_user -e {{ item.email }} -p {{ item.password }} -m {{ item.mode }} -c {{ demo_course_id }}
chdir={{
demo_
edxapp_code_dir }}
sudo_user
:
"
{{
common_web_user
}}"
with_items
:
demo_test_users
when
:
demo_checkout.changed
-
name
:
create staff user
shell
:
>
{{ edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms create_user -e staff@example.com -p edx -s -c {{ demo_course_id }}
chdir={{ edxapp_code_dir }}
{{
demo_
edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms create_user -e staff@example.com -p edx -s -c {{ demo_course_id }}
chdir={{
demo_
edxapp_code_dir }}
sudo_user
:
"
{{
common_web_user
}}"
when
:
demo_checkout.changed
-
name
:
add test users to the certificate whitelist
shell
:
>
{{ edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms cert_whitelist -a {{ item.email }} -c {{ demo_course_id }}
chdir={{ edxapp_code_dir }}
{{
demo_
edxapp_venv_bin }}/python ./manage.py lms --settings=aws --service-variant lms cert_whitelist -a {{ item.email }} -c {{ demo_course_id }}
chdir={{
demo_
edxapp_code_dir }}
with_items
:
demo_test_users
when
:
demo_checkout.changed
-
name
:
seed the forums for the demo course
shell
:
>
{{ edxapp_venv_bin }}/python ./manage.py lms --settings=aws seed_permissions_roles {{ demo_course_id }}
chdir={{ edxapp_code_dir }}
{{
demo_
edxapp_venv_bin }}/python ./manage.py lms --settings=aws seed_permissions_roles {{ demo_course_id }}
chdir={{
demo_
edxapp_code_dir }}
with_items
:
demo_test_users
when
:
demo_checkout.changed
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