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
d4a3be59
Commit
d4a3be59
authored
Dec 27, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skeleton role for db-grader-proxy
parent
b9a572ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
0 deletions
+52
-0
playbooks/edx-west/db-grader-proxy.yml
+16
-0
playbooks/roles/db-grader-proxy/defaults/main.yml
+9
-0
playbooks/roles/db-grader-proxy/tasks/main.yml
+12
-0
playbooks/roles/db-grader-proxy/templates/db-grader-proxy.j2
+15
-0
No files found.
playbooks/edx-west/db-grader-proxy.yml
0 → 100644
View file @
d4a3be59
-
hosts
:
tag_environment_prod:&tag_function_dbgrader
sudo
:
True
vars_files
:
-
"
{{
secure_dir
}}/vars/users_db_grader.yml"
vars
:
secure_dir
:
'
../../../configuration-secure/ansible'
local_dir
:
'
../../../configuration-secure/ansible/local'
roles
:
-
role
:
gh_users
gh_users
:
-
sefk
-
jbau
-
jrbl
-
jaericson
# - apache
-
db-grader-proxy
playbooks/roles/db-grader-proxy/defaults/main.yml
0 → 100644
View file @
d4a3be59
---
COMMON_BASE_DIR
:
/edx
COMMON_APP_DIR
:
"
{{
COMMON_BASE_DIR}}/app"
db_grader_proxy_repo
:
'
https://github.com/Stanford-Online/db-grader-proxy.git'
db_grader_proxy_dir
:
'
{{COMMON_APP_DIR}}/db-grader-proxy'
db_grader_proxy_commit
:
'
HEAD'
db_grader_proxy_port
:
8000
\ No newline at end of file
playbooks/roles/db-grader-proxy/tasks/main.yml
0 → 100644
View file @
d4a3be59
---
-
name
:
db-grader-proxy | clone repo
git
:
dest={{db_grader_proxy_dir}} repo={{db_grader_proxy_repo}} version={{db_grader_proxy_commit}}
-
name
:
db-grader-proxy | write out db-grader-proxy apache site
template
:
dest=/etc/apache2/sites-available/db-grader-proxy src=db-grader-proxy.j2 owner=root group=root mode=0644
-
name
:
db-grader-proxy | enable db-grader-proxy site
command
:
a2ensite db-grader-proxy
-
name
:
db-grader-proxy | restart apache
service
:
name=apache2 state=restarted
playbooks/roles/db-grader-proxy/templates/db-grader-proxy.j2
0 → 100644
View file @
d4a3be59
<VirtualHost *:{{db_grader_proxy_port}}>
WSGIScriptAlias / {{db_grader_proxy_dir}}/db_grader_proxy/wsgi.py
ErrorLog ${APACHE_LOG_DIR}/django-proxy-error.log
CustomLog ${APACHE_LOG_DIR}/django-proxy-access.log combined
<Directory {{db_grader_proxy_dir}}/db_grader_proxy>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
WSGIDaemonProcess grader threads=10 maximum-requests=10000 python-path={{db_grader_proxy_dir}}
WSGIProcessGroup grader
</VirtualHost>
\ No newline at end of file
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