adjust ssh check loop time from sleep 3 to 5, to reduce the number of outputs

This commit is contained in:
Karim Naufal 2022-02-17 21:49:03 +01:00
parent 74829deaa7
commit cb5aa2410d
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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