From cdd884c2cd43f223f1fceceea94374889be9c1d6 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 31 Oct 2023 11:32:47 +0100 Subject: [PATCH] Added step to install software for auto-configuring network --- terraform/cloud-init.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/cloud-init.yaml b/terraform/cloud-init.yaml index 4067798..86014ee 100644 --- a/terraform/cloud-init.yaml +++ b/terraform/cloud-init.yaml @@ -24,4 +24,6 @@ runcmd: - sed -i -e '/^\(#\|\)AllowAgentForwarding/s/^.*$/AllowAgentForwarding no/' /etc/ssh/sshd_config - sed -i -e '/^\(#\|\)AuthorizedKeysFile/s/^.*$/AuthorizedKeysFile .ssh\/authorized_keys/' /etc/ssh/sshd_config - sed -i '$a AllowUsers 2martensAdmin' /etc/ssh/sshd_config + - curl https://packages.hetzner.com/hcloud/deb/hc-utils_0.0.4-1_all.deb -o /tmp/hc-utils_0.0.4-1_all.deb -s + - apt install /tmp/hc-utils_0.0.4-1_all.deb - reboot \ No newline at end of file