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
f41a1947
Commit
f41a1947
authored
Feb 12, 2015
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor out xqwatcher_data_dir assumption
parent
efb718aa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
8 deletions
+5
-8
playbooks/roles/xqwatcher/defaults/main.yml
+2
-0
playbooks/roles/xqwatcher/tasks/code_jail.yml
+1
-1
playbooks/roles/xqwatcher/tasks/deploy.yml
+1
-0
playbooks/roles/xqwatcher/tasks/deploy_courses.yml
+1
-1
playbooks/roles/xqwatcher/tasks/main.yml
+0
-6
No files found.
playbooks/roles/xqwatcher/defaults/main.yml
View file @
f41a1947
...
...
@@ -76,6 +76,8 @@ xqwatcher_user: "{{ xqwatcher_service_name }}"
xqwatcher_app_dir
:
"
{{
COMMON_APP_DIR
}}/{{
xqwatcher_service_name
}}"
xqwatcher_app_data
:
"
{{
xqwatcher_app_dir
}}/data"
xqwatcher_code_dir
:
"
{{
xqwatcher_app_dir
}}/src"
#change this to /edx/etc after pulling xqwatcher.json out
xqwatcher_conf_dir
:
"
{{
xqwatcher_app_dir
}}"
xqwatcher_requirements_file
:
"
{{
xqwatcher_code_dir
}}/requirements.txt"
...
...
playbooks/roles/xqwatcher/tasks/code_jail.yml
View file @
f41a1947
...
...
@@ -37,7 +37,7 @@
-
name
:
write out requirements.txt
template
:
>
src=edx/app/xqwatcher/data/requirements.txt.j2
dest={{ xqwatcher_app_d
ata }}
/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}-requirements.txt
dest={{ xqwatcher_app_d
ir }}/data
/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}-requirements.txt
mode=0440 owner=root group=root
with_items
:
XQWATCHER_COURSES
...
...
playbooks/roles/xqwatcher/tasks/deploy.yml
View file @
f41a1947
#TODO: remove once xqwatcher.json can be pulled out into /edx/etc/
-
name
:
write out watcher config file
template
:
>
src=edx/app/xqwatcher/xqwatcher.json.j2
...
...
playbooks/roles/xqwatcher/tasks/deploy_courses.yml
View file @
f41a1947
...
...
@@ -4,7 +4,7 @@
-
name
:
checkout grader code
git
:
>
dest={{ xqwatcher_app_d
ata }}
/{{ item.COURSE }} repo={{ item.GIT_REPO }}
dest={{ xqwatcher_app_d
ir }}/data
/{{ item.COURSE }} repo={{ item.GIT_REPO }}
version={{ item.GIT_REF }}
ssh_opts="{{ xqwatcher_git_ssh_opts }}"
with_items
:
XQWATCHER_COURSES
playbooks/roles/xqwatcher/tasks/main.yml
View file @
f41a1947
...
...
@@ -100,12 +100,6 @@
owner="{{ xqwatcher_user }}"
group="{{ xqwatcher_user }}"
-
name
:
create app data dir
file
:
>
path="{{ xqwatcher_app_data }}"
state=directory
owner="{{ xqwatcher_user }}"
group="{{ xqwatcher_user }}"
-
include
:
code_jail.yml CODE_JAIL_COMPLAIN=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