Commit ea96ee50 by Max Rothman

xqwatcher fixes

parent 9205dcae
...@@ -77,9 +77,12 @@ xqwatcher_app_dir: "{{ COMMON_APP_DIR }}/{{ xqwatcher_service_name }}" ...@@ -77,9 +77,12 @@ xqwatcher_app_dir: "{{ COMMON_APP_DIR }}/{{ xqwatcher_service_name }}"
xqwatcher_app_data: "{{ xqwatcher_app_dir }}/data" xqwatcher_app_data: "{{ xqwatcher_app_dir }}/data"
xqwatcher_code_dir: "{{ xqwatcher_app_dir }}/src" xqwatcher_code_dir: "{{ xqwatcher_app_dir }}/src"
#change this to /edx/etc after pulling xqwatcher.json out #TODO: change this to /edx/etc after pulling xqwatcher.json out
xqwatcher_conf_dir: "{{ xqwatcher_app_dir }}" xqwatcher_conf_dir: "{{ xqwatcher_app_dir }}"
#TODO: remove after refactoring out all the git stuff
xqwatcher_course_git_ssh_opts: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {{ XQWATCHER_GIT_IDENTITY }}"
xqwatcher_requirements_file: "{{ xqwatcher_code_dir }}/requirements.txt" xqwatcher_requirements_file: "{{ xqwatcher_code_dir }}/requirements.txt"
xqwatcher_log_dir: "{{ COMMON_LOG_DIR }}/{{ xqwatcher_service_name }}" xqwatcher_log_dir: "{{ COMMON_LOG_DIR }}/{{ xqwatcher_service_name }}"
xqwatcher_module: "xqueue_watcher" xqwatcher_module: "xqueue_watcher"
......
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
git: > git: >
dest={{ xqwatcher_app_dir }}/data/{{ item.COURSE }} repo={{ item.GIT_REPO }} dest={{ xqwatcher_app_dir }}/data/{{ item.COURSE }} repo={{ item.GIT_REPO }}
version={{ item.GIT_REF }} version={{ item.GIT_REF }}
ssh_opts="{{ xqwatcher_git_ssh_opts }}" ssh_opts="{{ xqwatcher_course_git_ssh_opts }}"
with_items: XQWATCHER_COURSES with_items: XQWATCHER_COURSES
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
- name: restart xqwatcher - name: restart xqwatcher
supervisorctl_local: > supervisorctl_local: >
state=restarted state=restarted
supervisorctl_path={{ supervisor_ctl }} supervisorctl_path={{ xqwatcher_supervisor_ctl }}
config={{ supervisor_cfg }} config={{ xqwatcher_supervisor_app_dir }}/supervisord.conf
name={{ xqwatcher_service_name }} name={{ xqwatcher_service_name }}
when: not disable_edx_services when: not disable_edx_services
sudo_user: "{{ supervisor_service_user }}" sudo_user: "{{ xqwatcher_user }}"
\ No newline at end of file \ 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