removed the ssh connection timeout messages while waiting, and also reduced the connection refused messages
This commit is contained in:
parent
c6e6115bb9
commit
95c6b8be93
@ -50,7 +50,7 @@ resource "hcloud_server" "agents" {
|
||||
|
||||
# Wait for MicroOS to reboot and be ready
|
||||
provisioner "local-exec" {
|
||||
command = "until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true; do sleep 1; done"
|
||||
command = "ping ${self.ipv4_address} | grep --line-buffered 'bytes from' | head -1 && sleep 10 && until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true; do sleep 1; done"
|
||||
}
|
||||
|
||||
# Generating and uploading the angent.conf file
|
||||
|
@ -48,7 +48,7 @@ resource "hcloud_server" "first_control_plane" {
|
||||
|
||||
# Wait for MicroOS to reboot and be ready
|
||||
provisioner "local-exec" {
|
||||
command = "until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true; do sleep 1; done"
|
||||
command = "ping ${self.ipv4_address} | grep --line-buffered 'bytes from' | head -1 && sleep 10 && until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true; do sleep 1; done"
|
||||
}
|
||||
|
||||
# Generating k3s master config file
|
||||
|
@ -49,7 +49,7 @@ resource "hcloud_server" "control_planes" {
|
||||
|
||||
# Wait for MicroOS to reboot and be ready
|
||||
provisioner "local-exec" {
|
||||
command = "until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true; do sleep 1; done"
|
||||
command = "ping ${self.ipv4_address} | grep --line-buffered 'bytes from' | head -1 && sleep 10 && until ssh ${local.ssh_args} -o ConnectTimeout=2 root@${self.ipv4_address} true; do sleep 1; done"
|
||||
}
|
||||
|
||||
# Generating k3s server config file
|
||||
|
Loading…
Reference in New Issue
Block a user