Browse code

Move extensions_to_txt to the job defintion

Move extensions_to_txt to the job defintion so that it may be
extended by descendant jobs.

Depends-on: https://review.openstack.org/540485/

Change-Id: I6e9009faa1451698ed781ce1ffdd9f22c97daa93

Andrea Frittoli (andreaf) authored on 2018/02/01 06:01:36
Showing 2 changed files
... ...
@@ -111,6 +111,12 @@
111 111
         '/etc/glusterfs/glusterd.vol': 'logs'
112 112
         '/etc/resolv.conf': 'logs'
113 113
         '/var/log/unbound.log': 'logs'
114
+      extensions_to_txt:
115
+        conf: True
116
+        log: True
117
+        localrc: True
118
+        stackenv: True
119
+        summary: True
114 120
     pre-run: playbooks/pre.yaml
115 121
     run: playbooks/devstack.yaml
116 122
     post-run: playbooks/post.yaml
... ...
@@ -24,12 +24,6 @@
24 24
     # capture-system-logs should be the last role before stage-output
25 25
     - capture-system-logs
26 26
     - role: stage-output
27
-      extensions_to_txt:
28
-        - conf
29
-        - log
30
-        - localrc
31
-        - stackenv
32
-        - summary
33 27
     # NOTE(andreaf) We need fetch-devstack-log-dir only as long as the base job
34 28
     # starts pulling logs for us from {{ ansible_user_dir }}/logs.
35 29
     # Meanwhile we already store things in ansible_user_dir and use