From 8fc1db3d63187df0c4f3e5103912c147b4db843e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Luciano?= Date: Sat, 8 Nov 2025 05:15:59 +0000 Subject: [PATCH 1/2] fix: change private network interface --- modules/host/templates/cloudinit.yaml.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/host/templates/cloudinit.yaml.tpl b/modules/host/templates/cloudinit.yaml.tpl index c00607a9..7c3f3f19 100644 --- a/modules/host/templates/cloudinit.yaml.tpl +++ b/modules/host/templates/cloudinit.yaml.tpl @@ -35,7 +35,7 @@ ${cloudinit_runcmd_common} # Configure default routes based on public ip availability %{if private_network_only~} # Private-only setup: eth0 is the private interface -- [ip, route, add, default, via, '${network_gw_ipv4}', dev, 'eth0', metric, '100'] +- [ip, route, add, default, via, '${network_gw_ipv4}', dev, 'enp7s0', metric, '100'] %{else~} # Standard setup: eth0 is public, configure both IPv4 and IPv6 - [ip, route, add, default, via, '172.31.1.1', dev, 'eth0', metric, '100'] From 7c2fd1bf3b5dd28724443b42b209df871986e617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Luciano?= Date: Sat, 8 Nov 2025 05:16:15 +0000 Subject: [PATCH 2/2] fix: increase ssh connectiion timeout --- modules/host/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/host/main.tf b/modules/host/main.tf index 77683b1d..b6c0602d 100644 --- a/modules/host/main.tf +++ b/modules/host/main.tf @@ -89,7 +89,7 @@ resource "hcloud_server" "server" { provisioner "local-exec" { command = <<-EOT timeout 600 bash < /dev/null + until ssh ${local.ssh_args} -i /tmp/${random_string.identity_file.id} ${local.ssh_proxy_jump} -o ConnectTimeout=10 -p ${var.ssh_port} root@${coalesce(self.ipv4_address, self.ipv6_address, try(one(self.network).ip, null))} true 2> /dev/null do echo "Waiting for MicroOS to become available..." sleep 3