From 7763ceff4cf4443d3f21829bb029dd82a7e701c9 Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Wed, 19 May 2021 15:57:30 +0200 Subject: [PATCH] Test connection before git clone Test the connection to github before cloning the repository. Previously it could happen that the git clone failed due to the external network connection not being established immediately after boot. --- cloud/terraform/cloud-init.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/terraform/cloud-init.yaml b/cloud/terraform/cloud-init.yaml index 18d6621a..cd0277db 100644 --- a/cloud/terraform/cloud-init.yaml +++ b/cloud/terraform/cloud-init.yaml @@ -5,6 +5,7 @@ packages: - git runcmd: + - curl -sS --retry 5 https://github.com - git clone https://github.com/telekom-security/tpotce /root/tpot - /root/tpot/iso/installer/install.sh --type=auto --conf=/root/tpot.conf - rm /root/tpot.conf