Copy test-volume

Change-Id: Ic184c91c66296ceda3aefc7ff81727d9ab305e6c
This commit is contained in:
Flavio Percoco 2017-11-30 18:18:36 +01:00
parent d00b23f4e2
commit 85866bc3b9
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ copy_logs() {
cp -rvnL /var/log/* ${SYSTEM_LOGS}
cp -rvnL /tmp/kubespray ${LOG_DIR}/
cp -rvnL /tmp/test-volume ${LOG_DIR}/
if [[ -x "$(command -v journalctl)" ]]; then

View File

@ -33,7 +33,6 @@
EOF
sudo mkdir /tmp/test-volume
sudo chmod 777 /tmp/test-volume
cat <<EOF | kubectl create -f -
apiVersion: v1
@ -50,6 +49,10 @@
hostPath:
path: /tmp/test-volume
EOF
sudo chown zuul:zuul -R /tmp/test-volume
sudo chmod 777 /tmp/test-volume
executable: /bin/bash
become: true
delegate_to: "primary"