Commit 7f8a57af by Jason Bau

Merge pull request #1042 from edx/edx-west/db-grader-proxy

skeleton role for db-grader-proxy
parents b9a572ab 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
---
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
---
- 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
<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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment