Commit 9d37ce2c by e0d

new config file

parent 25fa3883
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
## ##
# Defaults for role xqwatcher # Defaults for role xqwatcher
# #
XQWATCHER_CONFIG:
HTTP_BASIC_AUTH: ['foo','bar']
POLL_TIME: 10
XQWATCHER_COURSES: XQWATCHER_COURSES:
- COURSE: "exampleX-101x" - COURSE: "exampleX-101x"
GIT_REPO: "git@github.com:foo/graders-exampleX-101x.git" GIT_REPO: "git@github.com:foo/graders-exampleX-101x.git"
...@@ -63,7 +68,7 @@ xqwatcher_home: "{{ COMMON_APP_DIR }}/{{ xqwatcher_service_name }}" ...@@ -63,7 +68,7 @@ xqwatcher_home: "{{ COMMON_APP_DIR }}/{{ xqwatcher_service_name }}"
xqwatcher_venv_base: "{{ xqwatcher_home }}/venvs" xqwatcher_venv_base: "{{ xqwatcher_home }}/venvs"
xqwatcher_venv_dir: "{{ xqwatcher_venv_base }}/{{ xqwatcher_service_name }}" xqwatcher_venv_dir: "{{ xqwatcher_venv_base }}/{{ xqwatcher_service_name }}"
xqwatcher_code_dir: "{{ xqwatcher_app_dir }}/src" xqwatcher_code_dir: "{{ xqwatcher_app_dir }}/src"
xqwatcher_conf_dir: "{{ xqwatcher_home }}/conf.d" xqwatcher_conf_dir: "{{ xqwatcher_home }}"
xqwatcher_data_dir: "{{ xqwatcher_home }}/data" xqwatcher_data_dir: "{{ xqwatcher_home }}/data"
xqwatcher_source_repo: "git@{{ COMMON_GIT_MIRROR }}:edx/xqueue-watcher.git" xqwatcher_source_repo: "git@{{ COMMON_GIT_MIRROR }}:edx/xqueue-watcher.git"
......
...@@ -103,10 +103,16 @@ ...@@ -103,10 +103,16 @@
- "{{ xqwatcher_supervisor_data_dir }}" - "{{ xqwatcher_supervisor_data_dir }}"
- "{{ xqwatcher_supervisor_log_dir }}" - "{{ xqwatcher_supervisor_log_dir }}"
- name: write out watcher config file
template: >
src=edx/app/xqwatcher/xqwatcher.json.j2
dest={{ xqwatcher_conf_dir }}/xqwatcher.json
mode=0644 owner={{ xqwatcher_user }} group={{ xqwatcher_user }}
- name: write out course config files - name: write out course config files
template: > template: >
src=edx/app/xqwatcher/conf.d/course.json.j2 src=edx/app/xqwatcher/conf.d/course.json.j2
dest={{ xqwatcher_conf_dir }}/{{ item.COURSE }}.json dest={{ xqwatcher_conf_dir }}/conf.d/{{ item.COURSE }}.json
mode=0644 owner={{ xqwatcher_user }} group={{ xqwatcher_user }} mode=0644 owner={{ xqwatcher_user }} group={{ xqwatcher_user }}
with_items: XQWATCHER_COURSES with_items: XQWATCHER_COURSES
......
{{ XQWATCHER_CONFIG | to_nice_json }}
\ 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