Copy test-volume
Change-Id: Ic184c91c66296ceda3aefc7ff81727d9ab305e6c
This commit is contained in:
parent
d00b23f4e2
commit
85866bc3b9
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue