1
0

ci: wait for cloud-init to finish

This commit is contained in:
dump_stack() 2023-05-16 14:26:22 +00:00
parent a49d705846
commit 5de9c50579
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -78,8 +78,10 @@ jobs:
sleep 1s sleep 1s
done done
ssh root@$IP "apt -o 'DPkg::Lock::Timeout=360' update" ssh root@$IP "cloud-init status --wait"
ssh root@$IP "apt -o 'DPkg::Lock::Timeout=360' install -y podman qemu-system-x86"
ssh root@$IP "apt-get update"
ssh root@$IP "apt-get install -y podman qemu-system-x86"
ssh root@$IP "useradd --shell /bin/bash user && mkdir -p /home/user/.ssh && cp /root/.ssh/authorized_keys /home/user/.ssh/ && chown -R user:user /home/user" ssh root@$IP "useradd --shell /bin/bash user && mkdir -p /home/user/.ssh && cp /root/.ssh/authorized_keys /home/user/.ssh/ && chown -R user:user /home/user"