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
f1a67e8e
Commit
f1a67e8e
authored
Jul 29, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant app_dir and replace data_dir with app_data
parent
81874e4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
playbooks/roles/xqwatcher/defaults/main.yml
+3
-4
playbooks/roles/xqwatcher/tasks/code_jail.yml
+2
-2
playbooks/roles/xqwatcher/tasks/deploy_courses.yml
+1
-1
playbooks/roles/xqwatcher/tasks/main.yml
+9
-2
No files found.
playbooks/roles/xqwatcher/defaults/main.yml
View file @
f1a67e8e
...
...
@@ -70,12 +70,11 @@ xqwatcher_user: "xqwatcher"
xqwatcher_module
:
"
xqueue_watcher"
xqwatcher_app_dir
:
"
{{
COMMON_APP_DIR
}}/{{
xqwatcher_service_name
}}"
xqwatcher_
home
:
"
{{
COMMON_APP_DIR
}}/{{
xqwatcher_service_name
}}
"
xqwatcher_venv_base
:
"
{{
xqwatcher_
home
}}/venvs"
xqwatcher_
app_data
:
"
{{
xqwatcher_app_dir
}}/data
"
xqwatcher_venv_base
:
"
{{
xqwatcher_
app_dir
}}/venvs"
xqwatcher_venv_dir
:
"
{{
xqwatcher_venv_base
}}/{{
xqwatcher_service_name
}}"
xqwatcher_code_dir
:
"
{{
xqwatcher_app_dir
}}/src"
xqwatcher_conf_dir
:
"
{{
xqwatcher_home
}}"
xqwatcher_data_dir
:
"
{{
COMMON_DATA_DIR
}}/{{
xqwatcher_service_name
}}/data"
xqwatcher_conf_dir
:
"
{{
xqwatcher_app_dir
}}"
xqwatcher_source_repo
:
"
git@{{
COMMON_GIT_MIRROR
}}:edx/xqueue-watcher.git"
xqwatcher_git_ssh_opts
:
"
-o
UserKnownHostsFile=/dev/null
-o
StrictHostKeyChecking=no
-i
{{
xqwatcher_git_identity
}}"
...
...
playbooks/roles/xqwatcher/tasks/code_jail.yml
View file @
f1a67e8e
...
...
@@ -44,13 +44,13 @@
-
name
:
write out requirements.txt
template
:
>
src=edx/app/xqwatcher/data/requirements.txt.j2
dest={{ xqwatcher_
data_dir
}}/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}-requirements.txt
dest={{ xqwatcher_
app_data
}}/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}-requirements.txt
mode=0440 owner=root group=root
with_items
:
XQWATCHER_COURSES
-
name
:
install course specific python requirements
pip
:
>
requirements="{{ xqwatcher_
data_dir
}}/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}-requirements.txt"
requirements="{{ xqwatcher_
app_data
}}/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}-requirements.txt"
virtualenv="{{ xqwatcher_venv_base }}/{{ item.QUEUE_CONFIG.HANDLERS[0].CODEJAIL.name }}"
state=present
extra_args="{{ XQWATCHER_PIP_EXTRA_ARGS }}"
...
...
playbooks/roles/xqwatcher/tasks/deploy_courses.yml
View file @
f1a67e8e
...
...
@@ -4,7 +4,7 @@
-
name
:
checkout grader code
git
:
>
dest={{ xqwatcher_
data_dir
}}/{{ item.COURSE }} repo={{ item.GIT_REPO }}
dest={{ xqwatcher_
app_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 @
f1a67e8e
...
...
@@ -86,8 +86,6 @@
# -----END RSA PRIVATE KEY-----
#
-
include
:
code_jail.yml CODE_JAIL_COMPLAIN=false
-
name
:
create conf dir
file
:
>
path="{{ xqwatcher_conf_dir }}"
...
...
@@ -102,4 +100,13 @@
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
-
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