summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2019-01-30 15:38:58 -0800
committerJames E. Blair <jeblair@redhat.com>2019-01-30 15:38:58 -0800
commit2abb8a130212bdf0fc7bb453f586d069cba2aa6f (patch)
tree4da4aae535a313c36ca19ba367cdccda227b8080
parentee5d3853437d55cfe4f15d37a85a6e378f0a06a3 (diff)
Allow stage-output to copy root-owned files
This makes it easier to tell stage-output to copy files such as syslog from remote nodes. Change-Id: Ica2397a50de1054f5d5ec81b54ab36fda9bdc333
Notes
Notes (review): Code-Review+2: Andreas Jaeger <jaegerandi@gmail.com> Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Monty Taylor <mordred@inaugust.com> Workflow+1: Monty Taylor <mordred@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 02 Feb 2019 07:15:32 +0000 Reviewed-on: https://review.openstack.org/634069 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/stage-output/tasks/main.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/stage-output/tasks/main.yaml b/roles/stage-output/tasks/main.yaml
index 4b59242..bee689b 100644
--- a/roles/stage-output/tasks/main.yaml
+++ b/roles/stage-output/tasks/main.yaml
@@ -59,8 +59,16 @@
59 # remote_src copy does not work recursively, synchronise is restricted by 59 # remote_src copy does not work recursively, synchronise is restricted by
60 # zuul, using command 60 # zuul, using command
61 command: cp -pRL {{ item.source}} {{ stage_dir }}/{{ item.dest }} 61 command: cp -pRL {{ item.source}} {{ stage_dir }}/{{ item.dest }}
62 become: true
62 with_items: "{{ all_sources }}" 63 with_items: "{{ all_sources }}"
63 64
65- name: Make all log files readable
66 file:
67 dest: "{{ stage_dir }}/logs"
68 mode: u=rwX,g=rX,o=rX
69 recurse: yes
70 become: yes
71
64- name: Discover log files that match extension_list 72- name: Discover log files that match extension_list
65 find: 73 find:
66 paths: "{{ stage_dir }}/logs" 74 paths: "{{ stage_dir }}/logs"