From cb5aa2410d41c5ede2511282b30418124f0fc87b Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Thu, 17 Feb 2022 21:49:03 +0100 Subject: [PATCH] adjust ssh check loop time from sleep 3 to 5, to reduce the number of outputs --- agents.tf | 2 +- master.tf | 2 +- servers.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agents.tf b/agents.tf index f83962f..9faed3b 100644 --- a/agents.tf +++ b/agents.tf @@ -44,7 +44,7 @@ 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 3" + command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 5" } provisioner "local-exec" { command = <<-EOT diff --git a/master.tf b/master.tf index 003d5dd..a0f695b 100644 --- a/master.tf +++ b/master.tf @@ -42,7 +42,7 @@ 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 3" + command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 5" } provisioner "local-exec" { command = <<-EOT diff --git a/servers.tf b/servers.tf index 7e918d9..99a076d 100644 --- a/servers.tf +++ b/servers.tf @@ -43,7 +43,7 @@ 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 3" + command = "ssh ${local.ssh_args} root@${self.ipv4_address} '(sleep 2; reboot)&'; sleep 5" } provisioner "local-exec" { command = <<-EOT