Add role to ensure per-node output dirs exist

To move the output interface onto the nodes, we need to make sure the
dirs exist on the nodes so people can count on them for putting stuff in
them.

Change-Id: I969218f59c3fc237e1b85f016a7d0c1548a0b073
This commit is contained in:
Monty Taylor 2017-10-13 07:34:48 -05:00 committed by Paul Belanger
parent 990cff351d
commit 1921599a33
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,8 @@
Ensure output directories are in place
**Role Variables**
.. zuul:rolevar:: zuul_output_dir
:default: {{ ansible_user_dir }}/zuul-output
Base directory for collecting job output.

View File

@ -0,0 +1 @@
zuul_output_dir: "{{ ansible_user_dir }}/zuul-output"

View File

@ -0,0 +1,8 @@
- name: Ensure Zuul Output directories exist
file:
path: "{{ zuul_output_dir }}/{{ item }}"
state: directory
with_items:
- logs
- artifacts
- docs