Publish sample config file in the genconfig job

Add a post run to enable copying the sample file
generated to zuul logs.

Change-Id: Ifc1e71ce486ef9cefc07dbe9fb7c78ce150317bd
This commit is contained in:
Goutham Pacha Ravi 2019-01-03 12:10:21 -08:00
parent 0c177b902a
commit 116becf381
2 changed files with 11 additions and 0 deletions

View File

@ -372,6 +372,7 @@
Run tests for manila project. Run tests for manila project.
Uses tox with the ``genconfig`` environment. Uses tox with the ``genconfig`` environment.
post-run: playbooks/manila-tox-genconfig/post.yaml
vars: vars:
tox_envlist: genconfig tox_envlist: genconfig

View File

@ -0,0 +1,10 @@
- hosts: all
roles:
- role: fetch-tox-output
tasks:
- name: Copy generated config sample file
synchronize:
src: "{{ zuul.project.src_dir }}/etc/manila/manila.conf.sample"
dest: "{{ zuul.executor.log_root }}"
mode: pull
verify_host: true