adjust ssh check loop time from sleep 3 to 5, to reduce the number of outputs
This commit is contained in:
@@ -44,7 +44,7 @@ resource "hcloud_server" "agents" {
|
|||||||
|
|
||||||
# Issue a reboot command and wait for the node to reboot
|
# Issue a reboot command and wait for the node to reboot
|
||||||
provisioner "local-exec" {
|
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" {
|
provisioner "local-exec" {
|
||||||
command = <<-EOT
|
command = <<-EOT
|
||||||
|
@@ -42,7 +42,7 @@ resource "hcloud_server" "first_control_plane" {
|
|||||||
|
|
||||||
# Issue a reboot command and wait for the node to reboot
|
# Issue a reboot command and wait for the node to reboot
|
||||||
provisioner "local-exec" {
|
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" {
|
provisioner "local-exec" {
|
||||||
command = <<-EOT
|
command = <<-EOT
|
||||||
|
@@ -43,7 +43,7 @@ resource "hcloud_server" "control_planes" {
|
|||||||
|
|
||||||
# Issue a reboot command and wait for the node to reboot
|
# Issue a reboot command and wait for the node to reboot
|
||||||
provisioner "local-exec" {
|
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" {
|
provisioner "local-exec" {
|
||||||
command = <<-EOT
|
command = <<-EOT
|
||||||
|
Reference in New Issue
Block a user