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
d23f89e1
Commit
d23f89e1
authored
Nov 04, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this adds some sample users using the new create_user django-admin.py
command
parent
d6e3e942
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
playbooks/roles/demo/defaults/main.yml
+11
-0
playbooks/roles/demo/tasks/deploy.yml
+26
-0
No files found.
playbooks/roles/demo/defaults/main.yml
View file @
d23f89e1
...
...
@@ -14,4 +14,15 @@
demo_app_dir
:
"
{{
COMMON_APP_DIR
}}/demo"
demo_code_dir
:
"
{{
demo_app_dir
}}/edx-demo-course"
demo_repo
:
"
https://{{
COMMON_GIT_MIRROR
}}/edx/edx-demo-course.git"
demo_course_id
:
'
edX/Open_DemoX/edx_demo_course'
demo_version
:
"
master"
demo_test_users
:
-
email
:
'
honor@example.com'
mode
:
honor
password
:
edx
-
email
:
'
audit@example.com'
mode
:
audit
password
:
edx
-
email
:
'
verified@example.com'
mode
:
audit
password
:
edx
playbooks/roles/demo/tasks/deploy.yml
View file @
d23f89e1
...
...
@@ -11,5 +11,31 @@
{{ edxapp_venv_bin }}/python ./manage.py cms --settings=aws import {{ edxapp_course_data_dir }} {{ demo_code_dir }}
chdir={{ edxapp_code_dir }}
sudo_user
:
"
{{
common_web_user
}}"
when
:
demo_checkout.changed
tags
:
deploy
-
name
:
demo | 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 }}
sudo_user
:
"
{{
common_web_user
}}"
with_items
:
demo_test_users
when
:
demo_checkout.changed
tags
:
deploy
-
name
:
demo | 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 }}
sudo_user
:
"
{{
common_web_user
}}"
when
:
demo_checkout.changed
tags
:
deploy
-
name
:
demo | 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 }}
with_items
:
demo_test_users
when
:
demo_checkout.changed
tags
:
deploy
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