Merge "Copy test-volume"
This commit is contained in:
commit
a38685bb7b
|
@ -32,6 +32,7 @@ copy_logs() {
|
||||||
|
|
||||||
cp -rvnL /var/log/* ${SYSTEM_LOGS}
|
cp -rvnL /var/log/* ${SYSTEM_LOGS}
|
||||||
cp -rvnL /tmp/kubespray ${LOG_DIR}/
|
cp -rvnL /tmp/kubespray ${LOG_DIR}/
|
||||||
|
cp -rvnL /tmp/test-volume ${LOG_DIR}/
|
||||||
|
|
||||||
|
|
||||||
if [[ -x "$(command -v journalctl)" ]]; then
|
if [[ -x "$(command -v journalctl)" ]]; then
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sudo mkdir /tmp/test-volume
|
sudo mkdir /tmp/test-volume
|
||||||
sudo chmod 777 /tmp/test-volume
|
|
||||||
|
|
||||||
cat <<EOF | kubectl create -f -
|
cat <<EOF | kubectl create -f -
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -50,6 +49,10 @@
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /tmp/test-volume
|
path: /tmp/test-volume
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
sudo chown zuul:zuul -R /tmp/test-volume
|
||||||
|
sudo chmod 777 /tmp/test-volume
|
||||||
|
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
become: true
|
become: true
|
||||||
delegate_to: "primary"
|
delegate_to: "primary"
|
||||||
|
|
Loading…
Reference in New Issue