aboutsummaryrefslogtreecommitdiff
path: root/gcloud-image-test.aww
diff options
context:
space:
mode:
Diffstat (limited to 'gcloud-image-test.aww')
-rw-r--r--gcloud-image-test.aww31
1 files changed, 24 insertions, 7 deletions
diff --git a/gcloud-image-test.aww b/gcloud-image-test.aww
index 6f8bf41..1ad1346 100644
--- a/gcloud-image-test.aww
+++ b/gcloud-image-test.aww
@@ -12,19 +12,36 @@ gcloud compute instances create arch-test \
gcloud compute instances describe arch-test \
--zone={{.Val "gcloud::zone"}}
-gcloud compute instances tail-serial-port-output {{.Val "host::name"}} \
+timeout 20s gcloud compute instances tail-serial-port-output \
--zone={{.Val "gcloud::zone"}} \
+ {{.Val "host::name"}} \
+ || exit 0
-gcloud compute ssh \
+gcloud compute scp \
--zone={{.Val "gcloud::zone"}} \
- --command="lsblk -o NAME,UUID,MOUNTPOINTS; cat /etc/fstab; \
- cat /etc/resolv.conf; timedatectl show-timesync; localectl; \
- sudo pacman -Sy" \
- --quiet \
- arch-test
+ golookup \
+ arch-test:~/
gcloud compute ssh \
--zone={{.Val "gcloud::zone"}} \
+ --command="\
+ echo '--- lsblk'; \
+ lsblk -o NAME,UUID,MOUNTPOINTS; \
+ echo '--- /etc/fstab'; \
+ cat /etc/fstab; \
+ echo '--- /etc/resolv.conf'; \
+ cat /etc/resolv.conf; \
+ echo '--- networkctl'; \
+ networkctl; \
+ echo '--- timedatectl'; \
+ timedatectl show-timesync; \
+ echo '--- localectl'; \
+ localectl; \
+ echo '--- pacman -Sy'; \
+ sudo pacman -Sy; \
+ echo '--- golookup'; \
+ ./golookup kilabit.info; \
+ " \
arch-test
## Test OS Login.