diff --git a/agents.tf b/agents.tf index 9faed3b..39562e6 100644 --- a/agents.tf +++ b/agents.tf @@ -44,14 +44,14 @@ resource "hcloud_server" "agents" { # Issue a reboot command and wait for the node to reboot provisioner "local-exec" { - command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 5" + command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 3" } provisioner "local-exec" { command = <<-EOT until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true 2> /dev/null do echo "Waiting for MicroOS to reboot and become available..." - sleep 2 + sleep 3 done EOT } diff --git a/master.tf b/master.tf index a0f695b..fb1acd0 100644 --- a/master.tf +++ b/master.tf @@ -42,14 +42,14 @@ resource "hcloud_server" "first_control_plane" { # Issue a reboot command and wait for the node to reboot provisioner "local-exec" { - command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 5" + command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 3" } provisioner "local-exec" { command = <<-EOT until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true 2> /dev/null do echo "Waiting for MicroOS to reboot and become available..." - sleep 2 + sleep 3 done EOT } diff --git a/servers.tf b/servers.tf index 99a076d..e574a7e 100644 --- a/servers.tf +++ b/servers.tf @@ -43,14 +43,14 @@ resource "hcloud_server" "control_planes" { # Issue a reboot command and wait for the node to reboot provisioner "local-exec" { - command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 5" + command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 3" } provisioner "local-exec" { command = <<-EOT until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true 2> /dev/null do echo "Waiting for MicroOS to reboot and become available..." - sleep 2 + sleep 3 done EOT }