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
248ed473
Commit
248ed473
authored
Feb 10, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #771 from edx/feanil/demo_common_dep
Feanil/demo common dep
parents
4fa6e029
8785b044
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
playbooks/roles/demo/defaults/main.yml
+5
-0
playbooks/roles/demo/tasks/deploy.yml
+11
-11
playbooks/roles/demo/tasks/main.yml
+1
-1
No files found.
playbooks/roles/demo/defaults/main.yml
View file @
248ed473
...
...
@@ -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/{{demo_edxapp_user}}/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 @
248ed473
...
...
@@ -2,41 +2,41 @@
-
name
:
check out the demo course
git
:
dest={{ demo_code_dir }} repo={{ demo_repo }} version={{ demo_version }}
sudo_user
:
"
{{
edxapp_user
}}"
sudo_user
:
"
{{
demo_
edxapp_user
}}"
register
:
demo_checkout
-
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
playbooks/roles/demo/tasks/main.yml
View file @
248ed473
...
...
@@ -33,6 +33,6 @@
-
name
:
create demo app and data dirs
file
:
>
path="{{ demo_app_dir }}" state=directory
owner="{{ edxapp_user }}" group="{{ common_web_group }}"
owner="{{
demo_
edxapp_user }}" group="{{ common_web_group }}"
-
include
:
deploy.yml 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