Commit b9a5b5d5 by e0d

Code review comments and general cleanup

removing stub code

use ssh_opts

whitespace

whitespace

whitespace

ssh_opts

whitespace

whitespace

Comments

comments.
parent 3bfc9995
...@@ -27,7 +27,8 @@ xqwatcher_code_dir: "{{ xqwatcher_app_dir }}/src" ...@@ -27,7 +27,8 @@ xqwatcher_code_dir: "{{ xqwatcher_app_dir }}/src"
xqwatcher_conf_dir: "{{ xqwatcher_home }}/conf.d" xqwatcher_conf_dir: "{{ xqwatcher_home }}/conf.d"
xqwatcher_data_dir: "{{ xqwatcher_home }}/data" xqwatcher_data_dir: "{{ xqwatcher_home }}/data"
xqwatcher_source_repo: "git@github.com:edx/xqueue-watcher.git" 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 }}"
xqwatcher_version: "master" xqwatcher_version: "master"
xqwatcher_git_identity: "{{ xqwatcher_app_dir }}/git-identity" xqwatcher_git_identity: "{{ xqwatcher_app_dir }}/git-identity"
......
...@@ -14,5 +14,3 @@ ...@@ -14,5 +14,3 @@
# Overview: # Overview:
# #
# #
- name: notify me
debug: msg="stub handler"
...@@ -3,15 +3,23 @@ ...@@ -3,15 +3,23 @@
content="{{ XQWATCHER_GIT_IDENTITY }}" dest={{ xqwatcher_git_identity }} content="{{ XQWATCHER_GIT_IDENTITY }}" dest={{ xqwatcher_git_identity }}
owner={{ xqwatcher_user }} group={{ xqwatcher_user }} mode=0600 owner={{ xqwatcher_user }} group={{ xqwatcher_user }} mode=0600
- name: upload ssh script # - name: upload ssh script
template: > # template: >
src=git_ssh.sh.j2 dest=/tmp/git_ssh.sh # src=git_ssh.sh.j2 dest=/tmp/git_ssh.sh
owner={{ xqwatcher_user }} mode=750 # owner={{ xqwatcher_user }} mode=750
- include: deploy_watcher.yml tags=deploy-watcher - name: remove read-only ssh key for the content repo
file: path=/tmp/git_ssh.sh state=absent
- include: deploy_watcher.yml
tags:
- deploy-watcher
- deploy
- include: deploy_courses.yml tags=deploy-courses - include: deploy_courses.yml
tags:
- deploy-courses
- deploy
- name: remove read-only ssh key for the content repo - name: remove read-only ssh key for the content repo
file: path={{ xqwatcher_git_identity }} state=absent file: path={{ xqwatcher_git_identity }} state=absent
\ No newline at end of file
# Iterates over the data structure documented in tasks/main.yml
# checking out the grader code from the repository specified on
# a per queue basis.
- name: checkout grader code - name: checkout grader code
git: > git: >
dest={{ xqwatcher_data_dir }}/{{ item.COURSE }} repo={{ item.GIT_REPO }} dest={{ xqwatcher_data_dir }}/{{ item.COURSE }} repo={{ item.GIT_REPO }}
version={{ item.GIT_REF }} version={{ item.GIT_REF }}
accept_hostkey=yes ssh_opts="{{ xqwatcher_git_ssh_opts }}"
environment:
GIT_SSH: /tmp/git_ssh.sh
sudo: true sudo: true
sudo_user: "{{ xqwatcher_user }}" sudo_user: "{{ xqwatcher_user }}"
with_items: XQWATCHER_COURSES with_items: XQWATCHER_COURSES
# Installs the xqueue watcher code and supervisor scripts.
# The watcher can watch one or many queues and dispatch submissions
# to the appropriate grader which lives in a separate SCM repository.
- name: checkout watcher code - name: checkout watcher code
git: > git: >
dest={{ xqwatcher_code_dir }} repo={{ xqwatcher_source_repo }} version={{ xqwatcher_version }} dest={{ xqwatcher_code_dir }} repo={{ xqwatcher_source_repo }} version={{ xqwatcher_version }}
accept_hostkey=yes accept_hostkey=yes
environment: ssh_opts="{{ xqwatcher_git_ssh_opts }}"
GIT_SSH: /tmp/git_ssh.sh
sudo: true sudo: true
sudo_user: "{{ xqwatcher_user }}" sudo_user: "{{ xqwatcher_user }}"
......
...@@ -96,7 +96,6 @@ ...@@ -96,7 +96,6 @@
owner="{{ xqwatcher_user }}" owner="{{ xqwatcher_user }}"
group="{{ xqwatcher_user }}" group="{{ xqwatcher_user }}"
- name: create supervisor dirs - name: create supervisor dirs
file: > file: >
path="{{ xqwatcher_conf_dir }}" path="{{ xqwatcher_conf_dir }}"
......
#!/bin/sh
exec /usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {{ xqwatcher_git_identity }} "$@"
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