Remove last remaining roles

These roles have been moved into zuul-jobs.

Change-Id: I073e34d86894e35ad2e7cb34c502bea9e8cc1bd2
Depends-On: I30bc85cd726aebfa0981fad0ff0595a34cfb227c
This commit is contained in:
James E. Blair 2017-07-17 13:47:48 -07:00
parent 69fccd007b
commit a25cd27b3c
8 changed files with 0 additions and 81 deletions

View File

@ -1,20 +0,0 @@
- name: Create Temp SSH key
command: ssh-keygen -t rsa -b 1024 -N '' -f {{ zuul_temp_ssh_key }}
delegate_to: localhost
- name: Distribute it to all nodes
authorized_key:
user: "{{ ansible_ssh_user }}"
state: present
key: "{{ lookup('file', zuul_temp_ssh_key + '.pub') }}"
- name: Remove all keys from local agent
command: ssh-add -D
delegate_to: localhost
- name: Add back temp key
command: ssh-add {{ zuul_temp_ssh_key }}
delegate_to: localhost
- name: Verify we can still SSH to all nodes
ping:

View File

@ -1,10 +0,0 @@
- name: Check to see if ssh key was already created for this build
stat:
path: "{{ zuul_temp_ssh_key }}"
register: zuul_temp_ssh_key_stat
delegate_to: localhost
failed_when: false
- name: Create a new key in workspace based on build UUID
include: create-key-and-replace.yaml
when: zuul_temp_ssh_key_stat is defined

View File

@ -1 +0,0 @@
zuul_temp_ssh_key: "{{ zuul.executor.src_root }}/../{{ zuul.uuid }}_id_rsa"

View File

@ -1,6 +0,0 @@
- name: Collect logs from remote hosts.
synchronize:
dest: "{{ zuul.executor.log_root }}"
mode: pull
src: "logs/"
no_log: true

View File

@ -1,16 +0,0 @@
# TODO(pabelanger): Handle cleanup on static nodes
- name: Start zuul_console daemon.
zuul_console:
- name: Create workspace directory.
file:
path: "{{ zuul_workspace_root }}"
owner: zuul
group: zuul
state: directory
- name: Synchronize src repos to workspace directory.
synchronize:
dest: "{{ zuul_workspace_root }}"
src: "{{ zuul.executor.src_root }}"
no_log: true

View File

@ -1,5 +0,0 @@
- name: Remove the build SSH key from all nodes
authorized_key:
user: "{{ ansible_ssh_user }}"
key: "{{ lookup('file', zuul_temp_ssh_key + '.pub') }}"
state: absent

View File

@ -1 +0,0 @@
zuul_temp_ssh_key: "{{ zuul.executor.src_root }}/../{{ zuul.uuid }}_id_rsa"

View File

@ -1,22 +0,0 @@
- name: Set log path for a change
when: zuul.change is defined
set_fact:
log_path: "{{ zuul.change[-2:] }}/{{ zuul.change }}/{{ zuul.patchset }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.uuid[:7] }}"
- name: Set log path for a ref update
when: zuul.newrev is defined
set_fact:
log_path: "{{ zuul.newrev[-2:] }}/{{ zuul.newrev }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.uuid[:7] }}"
- name: Create log directories
file:
path: "/srv/static/logs/{{ log_path }}"
state: directory
recurse: yes
mode: 0775
- name: Upload logs to log server
synchronize:
src: "{{ zuul.executor.log_root }}/"
dest: "/srv/static/logs/{{ log_path }}/"
no_log: true